mirror of
https://github.com/minio/minio.git
synced 2025-11-29 05:19:03 -05:00
Fix cleanup of pipe in GetObjectNInfo handlers (#6509)
This commit is contained in:
committed by
kannappanr
parent
36e51d0cee
commit
3c8fabd116
@@ -259,7 +259,8 @@ func (c cacheObjects) GetObjectNInfo(ctx context.Context, bucket, object string,
|
||||
}()
|
||||
|
||||
cleanupBackend := func() { bkReader.Close() }
|
||||
gr = NewGetObjectReaderFromReader(teeReader, bkReader.ObjInfo, cleanupBackend)
|
||||
cleanupPipe := func() { pipeReader.Close() }
|
||||
gr = NewGetObjectReaderFromReader(teeReader, bkReader.ObjInfo, cleanupBackend, cleanupPipe)
|
||||
return gr, nil
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user