diff options
author | Péter Szilágyi <peterke@gmail.com> | 2018-01-31 01:18:42 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-01-31 01:18:42 +0800 |
commit | 07d4a022573444eac0db2f5da500cc5ee1e940bb (patch) | |
tree | 4920cc6a94058fa165cdc73bfe8cbaecbc5331a1 | |
parent | 017b9f7eacd1048661b22b7892caf680deb2b548 (diff) | |
parent | 3e89b80ccb1110c04f4db7b8201c9c6d27b824c4 (diff) | |
download | go-tangerine-07d4a022573444eac0db2f5da500cc5ee1e940bb.tar go-tangerine-07d4a022573444eac0db2f5da500cc5ee1e940bb.tar.gz go-tangerine-07d4a022573444eac0db2f5da500cc5ee1e940bb.tar.bz2 go-tangerine-07d4a022573444eac0db2f5da500cc5ee1e940bb.tar.lz go-tangerine-07d4a022573444eac0db2f5da500cc5ee1e940bb.tar.xz go-tangerine-07d4a022573444eac0db2f5da500cc5ee1e940bb.tar.zst go-tangerine-07d4a022573444eac0db2f5da500cc5ee1e940bb.zip |
Merge pull request #15997 from karalabe/batch-reset-size
ethdb: reset the batch size too on reset
-rw-r--r-- | ethdb/database.go | 1 |
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 { |