mirror of
https://github.com/minio/minio.git
synced 2025-11-21 02:09:08 -05:00
Use hash.NewLimitReader for internal multipart calls (#17191)
This commit is contained in:
@@ -413,7 +413,7 @@ func (r *BatchJobReplicateV1) copyWithMultipartfromSource(ctx context.Context, a
|
||||
}
|
||||
defer rd.Close()
|
||||
|
||||
hr, err = hash.NewReader(rd, objInfo.Size, "", "", objInfo.Size)
|
||||
hr, err = hash.NewLimitReader(rd, objInfo.Size, "", "", objInfo.Size)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user