core, ethdb: reuse database batches (#15989)
* leveldb: Update leveldb to 211f780 (poolfix) * core, ethdb: reuse database batches
This commit is contained in:
committed by
Péter Szilágyi
parent
6198c53e28
commit
017b9f7eac
@ -123,3 +123,8 @@ func (b *memBatch) Write() error {
|
||||
func (b *memBatch) ValueSize() int {
|
||||
return b.size
|
||||
}
|
||||
|
||||
func (b *memBatch) Reset() {
|
||||
b.writes = b.writes[:0]
|
||||
b.size = 0
|
||||
}
|
||||
|
Reference in New Issue
Block a user