소스 검색

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 {