diff options
author | Péter Szilágyi <peterke@gmail.com> | 2018-01-31 01:12:28 +0800 |
---|---|---|
committer | Péter Szilágyi <peterke@gmail.com> | 2018-01-31 01:12:28 +0800 |
commit | 3e89b80ccb1110c04f4db7b8201c9c6d27b824c4 (patch) | |
tree | 4920cc6a94058fa165cdc73bfe8cbaecbc5331a1 /ethdb | |
parent | 017b9f7eacd1048661b22b7892caf680deb2b548 (diff) | |
download | go-tangerine-3e89b80ccb1110c04f4db7b8201c9c6d27b824c4.tar go-tangerine-3e89b80ccb1110c04f4db7b8201c9c6d27b824c4.tar.gz go-tangerine-3e89b80ccb1110c04f4db7b8201c9c6d27b824c4.tar.bz2 go-tangerine-3e89b80ccb1110c04f4db7b8201c9c6d27b824c4.tar.lz go-tangerine-3e89b80ccb1110c04f4db7b8201c9c6d27b824c4.tar.xz go-tangerine-3e89b80ccb1110c04f4db7b8201c9c6d27b824c4.tar.zst go-tangerine-3e89b80ccb1110c04f4db7b8201c9c6d27b824c4.zip |
ethdb: reset the batch size too on reset
Diffstat (limited to 'ethdb')
-rw-r--r-- | ethdb/database.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ethdb/database.go b/ethdb/database.go index 9a7c85d9e..d86585f07 100644 --- a/ethdb/database.go +++ b/ethdb/database.go @@ -301,6 +301,7 @@ func (b *ldbBatch) ValueSize() int { func (b *ldbBatch) Reset() { b.b.Reset() + b.size = 0 } type table struct { |