Преглед изворни кода

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 {