aboutsummaryrefslogtreecommitdiffstats
path: root/ethdb
diff options
context:
space:
mode:
authorPéter Szilágyi <peterke@gmail.com>2018-01-31 01:12:28 +0800
committerPéter Szilágyi <peterke@gmail.com>2018-01-31 01:12:28 +0800
commit3e89b80ccb1110c04f4db7b8201c9c6d27b824c4 (patch)
tree4920cc6a94058fa165cdc73bfe8cbaecbc5331a1 /ethdb
parent017b9f7eacd1048661b22b7892caf680deb2b548 (diff)
downloaddexon-3e89b80ccb1110c04f4db7b8201c9c6d27b824c4.tar.gz
dexon-3e89b80ccb1110c04f4db7b8201c9c6d27b824c4.tar.zst
dexon-3e89b80ccb1110c04f4db7b8201c9c6d27b824c4.zip
ethdb: reset the batch size too on reset
Diffstat (limited to 'ethdb')
-rw-r--r--ethdb/database.go1
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 {