mirror of
https://github.com/minio/minio.git
synced 2025-03-30 17:23:42 -04:00
ilm: Close warmBackend GetObject reader (#12174)
This commit is contained in:
parent
b0baaeaa3d
commit
0c9d095deb
@ -341,7 +341,10 @@ func getTransitionedObjectReader(ctx context.Context, bucket, object string, rs
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
return fn(reader, h, opts.CheckPrecondFn)
|
closer := func() {
|
||||||
|
reader.Close()
|
||||||
|
}
|
||||||
|
return fn(reader, h, opts.CheckPrecondFn, closer)
|
||||||
}
|
}
|
||||||
|
|
||||||
// RestoreRequestType represents type of restore.
|
// RestoreRequestType represents type of restore.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user