Skip to content

Commit

Permalink
Merge pull request moby#20458 from aaronlehmann/migration-close-gzip-…
Browse files Browse the repository at this point in the history
…writer

Close tarsplit gzip writer when creating tar-split.json.gz files during layer migration
  • Loading branch information
Arnaud Porterie committed Feb 19, 2016
2 parents 6a8342d + 1c05c65 commit 7068722
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions layer/migration.go
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down

0 comments on commit 7068722

Please sign in to comment.