mirror of https://github.com/minio/minio.git
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 {
|
||||
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.
|
||||
|
|
Loading…
Reference in New Issue