Fix "Number of valid pieces is lower then success threshold" (#1679)
This commit is contained in:
parent
5ea797889b
commit
92c1121072
@ -413,10 +413,10 @@ func (endpoint *Endpoint) filterValidPieces(pointer *pb.Pointer) error {
|
|||||||
remotePieces = append(remotePieces, piece)
|
remotePieces = append(remotePieces, piece)
|
||||||
}
|
}
|
||||||
|
|
||||||
if int32(len(remotePieces)) < remote.Redundancy.SuccessThreshold {
|
if int32(len(remotePieces)) < remote.Redundancy.RepairThreshold {
|
||||||
return Error.New("Number of valid pieces is lower then success threshold: %v < %v",
|
return Error.New("Number of valid pieces is lower then repair threshold: %v < %v",
|
||||||
len(remotePieces),
|
len(remotePieces),
|
||||||
remote.Redundancy.SuccessThreshold,
|
remote.Redundancy.RepairThreshold,
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user