Skip to content

Commit 07d4a02

Browse files
authored
Merge pull request #15997 from karalabe/batch-reset-size
ethdb: reset the batch size too on reset
2 parents 017b9f7 + 3e89b80 commit 07d4a02

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎ethdb/database.go‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -301,6 +301,7 @@ func (b *ldbBatch) ValueSize() int {
301301

302302
func (b *ldbBatch) Reset() {
303303
b.b.Reset()
304+
b.size = 0
304305
}
305306

306307
type table struct {

0 commit comments

Comments
 (0)