From 3e89b80ccb1110c04f4db7b8201c9c6d27b824c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C3=A9ter=20Szil=C3=A1gyi?= Date: Tue, 30 Jan 2018 19:12:28 +0200 Subject: [PATCH] ethdb: reset the batch size too on reset --- ethdb/database.go | 1 + 1 file changed, 1 insertion(+) diff --git a/ethdb/database.go b/ethdb/database.go index 9a7c85d9ef..d86585f079 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 {