Skip to content

Commit

Permalink
Properly close batches
Browse files Browse the repository at this point in the history
  • Loading branch information
erikgrinaker committed Mar 9, 2020
1 parent 5db388c commit 69adf6b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@

### Bug Fixes

- [boltdb] Properly close batches

- [goleveldb] [\#58](https://github.com/tendermint/tm-db/pull/58) Make `Batch.Close()` actually remove the batch contents

## 0.4.1
Expand Down
4 changes: 3 additions & 1 deletion boltdb_batch.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,4 +49,6 @@ func (b *boltDBBatch) WriteSync() error {
}

// Close implements Batch.
func (b *boltDBBatch) Close() {}
func (b *boltDBBatch) Close() {
b.ops = nil
}

0 comments on commit 69adf6b

Please sign in to comment.