Skip to content

Commit

Permalink
close batch after write in nodedb (#130)
Browse files Browse the repository at this point in the history
  • Loading branch information
Stumble authored and liamsi committed Mar 13, 2019
1 parent ac7c35c commit cd1feb8
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
6 changes: 3 additions & 3 deletions Gopkg.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Gopkg.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

[[constraint]]
name = "github.com/tendermint/tendermint"
version = "v0.30.0"
version = "v0.30.2"

[prune]
go-tests = true
Expand Down
1 change: 1 addition & 0 deletions nodedb.go
Original file line number Diff line number Diff line change
Expand Up @@ -330,6 +330,7 @@ func (ndb *nodeDB) Commit() {
defer ndb.mtx.Unlock()

ndb.batch.Write()
ndb.batch.Close()
ndb.batch = ndb.db.NewBatch()
}

Expand Down

0 comments on commit cd1feb8

Please sign in to comment.