Skip to content

Commit

Permalink
Merge pull request ethereum#15997 from karalabe/batch-reset-size
Browse files Browse the repository at this point in the history
ethdb: reset the batch size too on reset
  • Loading branch information
karalabe authored Jan 30, 2018
2 parents 017b9f7 + 3e89b80 commit 07d4a02
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ethdb/database.go
Original file line number Diff line number Diff line change
Expand Up @@ -301,6 +301,7 @@ func (b *ldbBatch) ValueSize() int {

func (b *ldbBatch) Reset() {
b.b.Reset()
b.size = 0
}

type table struct {
Expand Down

0 comments on commit 07d4a02

Please sign in to comment.