mirror of
https://github.com/vmware-tanzu/velero.git
synced 2026-01-06 21:36:30 +00:00
defer closing the ReadCloser in ObjectStoreGRPCServer.GetObject
Signed-off-by: DheerajSShetty <dheerajs@vmware.com> Fixes #1093
This commit is contained in:
1
changelogs/unreleased/1236-DheerajSShetty
Normal file
1
changelogs/unreleased/1236-DheerajSShetty
Normal file
@@ -0,0 +1 @@
|
||||
Need to defer closing the the ReadCloser in ObjectStoreGRPCServer.GetObject
|
||||
@@ -284,6 +284,7 @@ func (s *ObjectStoreGRPCServer) GetObject(req *proto.GetObjectRequest, stream pr
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
defer rdr.Close()
|
||||
|
||||
chunk := make([]byte, byteChunkSize)
|
||||
for {
|
||||
|
||||
Reference in New Issue
Block a user