Fix #516. Close WAL log/index files if they aren't needed anymore

pull/535/head
John Shahid 2014-05-12 15:08:31 -04:00
parent 0f17a55af0
commit 4a1f0becd3
2 changed files with 9 additions and 2 deletions

View File

@ -1,3 +1,9 @@
## v0.6.3 [unreleased]
### Bugfixes
- [Issue #516](https://github.com/influxdb/influxdb/issues/516). Close WAL log/index files when they aren't being used
## v0.6.2 [2014-05-09]
### Bugfixes
@ -16,7 +22,7 @@
- [Issue #501](https://github.com/influxdb/influxdb/issues/501). Writes with invalid payload should be rejected
- [Issue #507](https://github.com/influxdb/influxdb/issues/507). New cluster admin passwords don't propagate properly to other nodes in a cluster
- [Issue #508](https://github.com/influxdb/influxdb/issues/508). Don't replay WAL entries for servers with no shards
- [Issue #464](https://github.com/influxdb/influxdb/issues/464). Admin UI shouldn't draw graphs for string columns
- [Issue #464](https://github.com/influxdb/influxdb/issues/464). Admin UI shouldn't draw graphs for string columns
- [Issue #480](https://github.com/influxdb/influxdb/issues/480). Large values on the y-axis get cut off
## v0.6.0 [2014-05-02]
@ -487,4 +493,3 @@
## v0.0.1 [2013-10-22]
* Initial Release

View File

@ -504,6 +504,8 @@ func (self *WAL) rotateTheLogFile(nextRequestNumber uint32) (bool, error) {
if err := lastIndex.syncFile(); err != nil {
return false, err
}
lastLogFile.close()
lastIndex.close()
lastLogFile, err := self.createNewLog(nextRequestNumber + 1)
if err != nil {
return false, err