Fix #516. Close WAL log/index files if they aren't needed anymore
parent
0f17a55af0
commit
4a1f0becd3
|
@ -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
|
||||
|
@ -487,4 +493,3 @@
|
|||
## v0.0.1 [2013-10-22]
|
||||
|
||||
* Initial Release
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue