mirror of
https://github.com/pgsty/minio.git
synced 2026-07-19 12:10:24 +03:00
Use hash.NewLimitReader for internal multipart calls (#17191)
This commit is contained in:
@@ -2088,7 +2088,7 @@ func (er erasureObjects) restoreTransitionedObject(ctx context.Context, bucket s
|
||||
|
||||
// rehydrate the parts back on disk as per the original xl.meta prior to transition
|
||||
for _, partInfo := range oi.Parts {
|
||||
hr, err := hash.NewReader(gr, partInfo.Size, "", "", partInfo.Size)
|
||||
hr, err := hash.NewLimitReader(gr, partInfo.Size, "", "", partInfo.Size)
|
||||
if err != nil {
|
||||
return setRestoreHeaderFn(oi, err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user