Skip to content

Commit

Permalink
Fix #516. Close WAL log/index files if they aren't needed anymore
Browse files Browse the repository at this point in the history
  • Loading branch information
jvshahid authored and pauldix committed May 27, 2014
1 parent 735f457 commit 0a7da3f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
9 changes: 7 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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]
Expand Down Expand Up @@ -487,4 +493,3 @@
## v0.0.1 [2013-10-22]

* Initial Release

2 changes: 2 additions & 0 deletions src/wal/wal.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0a7da3f

Please sign in to comment.