瀏覽代碼

ethdb: reset the batch size too on reset

Péter Szilágyi 7 年之前
父節點
當前提交
3e89b80ccb
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      ethdb/database.go

+ 1 - 0
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 {