Merge pull request #6224 from mvadu/fix_windows_failure

Fix failure on Windows
pull/6212/merge
joelegasse 2016-04-06 08:11:44 -04:00
commit 734b14b2b5
2 changed files with 6 additions and 0 deletions

View File

@ -44,6 +44,7 @@ This release removes all of the old clustering code. It operates as a standalone
- [#6152](https://github.com/influxdata/influxdb/issues/6152): Allow SHARD DURATION to be specified in isolation when creating a database
- [#6153](https://github.com/influxdata/influxdb/issues/6153): Check SHARD DURATION when recreating the same database
- [#6178](https://github.com/influxdata/influxdb/issues/6178): Ensure SHARD DURATION is checked when recreating a retention policy
- [#6223](https://github.com/influxdata/influxdb/issues/6223): Failure to start/run on Windows. Thanks @mvadu
## v0.11.1 [2016-03-31]

View File

@ -980,6 +980,11 @@ func snapshot(path string, data *Data) error {
return err
}
//close file handle before renaming to support Windows
if err = f.Close(); err != nil {
return err
}
return renameFile(tmpFile, file)
}