Skip to content

Commit

Permalink
Ensure gzip writer closed in influx_inspect export
Browse files Browse the repository at this point in the history
Previously, the gzip writer may have had unflushed data when the
underlying writer was closed, and the output stream would have been
truncated early.
  • Loading branch information
mark-rushakoff committed Aug 8, 2016
1 parent b98763a commit 7787703
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ With this release the systemd configuration files for InfluxDB will use the syst
- [#7107](https://github.com/influxdata/influxdb/pull/7107): Limit shard concurrency
- [#7028](https://github.com/influxdata/influxdb/pull/7028): Do not run continuous queries that have no time span.
- [#7025](https://github.com/influxdata/influxdb/issues/7025): Move the CQ interval by the group by offset.
- [#7125](https://github.com/influxdata/influxdb/pull/7125): Ensure gzip writer is closed in influx_inspect export

## v0.13.0 [2016-05-12]

Expand Down
1 change: 1 addition & 0 deletions cmd/influx_inspect/export.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ func (c *cmdExport) writeFiles() error {
defer w.Close()
if c.compress {
w = gzip.NewWriter(w)
defer w.Close()
}

// Write out all the DDL
Expand Down

0 comments on commit 7787703

Please sign in to comment.