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

This commit is contained in:
Poorna
2023-05-12 11:19:08 -07:00
committed by GitHub
parent 203755793c
commit e07c2ab868
9 changed files with 91 additions and 11 deletions

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
}