1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

Merge pull request #20458 from aaronlehmann/migration-close-gzip-writer

Close tarsplit gzip writer when creating tar-split.json.gz files during layer migration
This commit is contained in:
Arnaud Porterie 2016-02-18 16:48:50 -08:00
commit 7068722678

View file

@ -127,6 +127,7 @@ func (ls *layerStore) checksumForGraphIDNoTarsplit(id, parent, newTarDataPath st
}
defer f.Close()
mfz := gzip.NewWriter(f)
defer mfz.Close()
metaPacker := storage.NewJSONPacker(mfz)
packerCounter := &packSizeCounter{metaPacker, &size}