mirror of
https://github.com/pgsty/minio.git
synced 2026-07-19 12:10:24 +03:00
cache - fix corruption when client prematurely terminates request (#8155)
This commit is contained in:
+1
-1
@@ -240,7 +240,7 @@ func (c *cacheObjects) GetObjectNInfo(ctx context.Context, bucket, object string
|
||||
pipeWriter.CloseWithError(putErr)
|
||||
}()
|
||||
cleanupBackend := func() { bkReader.Close() }
|
||||
cleanupPipe := func() { pipeReader.Close() }
|
||||
cleanupPipe := func() { pipeWriter.Close() }
|
||||
return NewGetObjectReaderFromReader(teeReader, bkReader.ObjInfo, opts.CheckCopyPrecondFn, cleanupBackend, cleanupPipe)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user