storagenode/gracefulexit: fix wrong error handling for corrupted pieces (#3930)

This commit is contained in:
littleskunk 2020-08-21 11:35:03 +02:00 committed by GitHub
parent 959cd5cd83
commit db57d76ee9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -239,6 +239,7 @@ func (worker *Worker) transferPiece(ctx context.Context, transferPiece *pb.Trans
zap.Stringer("Piece ID", pieceID),
zap.Error(errs.Wrap(err)))
worker.handleFailure(ctx, pb.TransferFailed_NOT_FOUND, pieceID, c.Send)
return err
}
if worker.minBytesPerSecond == 0 {