File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -127,6 +127,8 @@ func (r *Restore) configsvrRestoreDatabases(
127
127
if err != nil {
128
128
return err
129
129
}
130
+ defer rdr .Close ()
131
+
130
132
rdr , err = compress .Decompress (rdr , bcp .Compression )
131
133
if err != nil {
132
134
return err
@@ -210,6 +212,8 @@ func (r *Restore) configsvrRestoreCollections(
210
212
if err != nil {
211
213
return nil , err
212
214
}
215
+ defer rdr .Close ()
216
+
213
217
rdr , err = compress .Decompress (rdr , bcp .Compression )
214
218
if err != nil {
215
219
return nil , err
@@ -274,6 +278,8 @@ func (r *Restore) configsvrRestoreChunks(
274
278
if err != nil {
275
279
return err
276
280
}
281
+ defer rdr .Close ()
282
+
277
283
rdr , err = compress .Decompress (rdr , bcp .Compression )
278
284
if err != nil {
279
285
return err
You can’t perform that action at this time.
0 commit comments