mirror of
https://github.com/minio/minio.git
synced 2024-12-24 06:05:55 -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 {
|
||||
return err
|
||||
}
|
||||
defer readCloser.Close()
|
||||
var reader io.Reader = readCloser
|
||||
|
||||
actualSize := uint64(st.Size())
|
||||
|
Loading…
Reference in New Issue
Block a user