diff --git a/satellite/metainfo/metainfo.go b/satellite/metainfo/metainfo.go index 44c38cffc..181a653a9 100644 --- a/satellite/metainfo/metainfo.go +++ b/satellite/metainfo/metainfo.go @@ -413,10 +413,10 @@ func (endpoint *Endpoint) filterValidPieces(pointer *pb.Pointer) error { remotePieces = append(remotePieces, piece) } - if int32(len(remotePieces)) < remote.Redundancy.SuccessThreshold { - return Error.New("Number of valid pieces is lower then success threshold: %v < %v", + if int32(len(remotePieces)) < remote.Redundancy.RepairThreshold { + return Error.New("Number of valid pieces is lower then repair threshold: %v < %v", len(remotePieces), - remote.Redundancy.SuccessThreshold, + remote.Redundancy.RepairThreshold, ) }