mirror of
https://github.com/minio/minio.git
synced 2025-01-12 07:23:23 -05:00
fix: in disk cache readCacheFileStream should closed upon return (#16138)
This commit is contained in:
parent
d6351879f3
commit
6086f45d25
@ -354,6 +354,7 @@ func migrateCacheData(ctx context.Context, c *diskCache, bucket, object, oldfile
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
defer readCloser.Close()
|
||||||
var reader io.Reader = readCloser
|
var reader io.Reader = readCloser
|
||||||
|
|
||||||
actualSize := uint64(st.Size())
|
actualSize := uint64(st.Size())
|
||||||
|
Loading…
Reference in New Issue
Block a user