mirror of
https://github.com/pgsty/minio.git
synced 2026-03-15 17:17:01 +01: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