Use hash.NewLimitReader for internal multipart calls (#17191)

This commit is contained in:
Poorna authored and GitHub committed 2023-05-12 11:19:08 -07:00
1 parent 203755793c
commit e07c2ab868
9 files changed
+91 -11

No files matched your search

+1 -1
View File
@@ -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
}