diff options
author | Martin Holst Swende <martin@swende.se> | 2018-01-31 01:03:31 +0800 |
---|---|---|
committer | Péter Szilágyi <peterke@gmail.com> | 2018-01-31 01:03:31 +0800 |
commit | 017b9f7eacd1048661b22b7892caf680deb2b548 (patch) | |
tree | e94115fdb225e7da6fe046fde71ce0e53bb15b23 /ethdb/interface.go | |
parent | 6198c53e28200b3a575f4545cbfa83c585e44b76 (diff) | |
download | dexon-017b9f7eacd1048661b22b7892caf680deb2b548.tar dexon-017b9f7eacd1048661b22b7892caf680deb2b548.tar.gz dexon-017b9f7eacd1048661b22b7892caf680deb2b548.tar.bz2 dexon-017b9f7eacd1048661b22b7892caf680deb2b548.tar.lz dexon-017b9f7eacd1048661b22b7892caf680deb2b548.tar.xz dexon-017b9f7eacd1048661b22b7892caf680deb2b548.tar.zst dexon-017b9f7eacd1048661b22b7892caf680deb2b548.zip |
core, ethdb: reuse database batches (#15989)
* leveldb: Update leveldb to 211f780 (poolfix)
* core, ethdb: reuse database batches
Diffstat (limited to 'ethdb/interface.go')
-rw-r--r-- | ethdb/interface.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ethdb/interface.go b/ethdb/interface.go index 99a5b770d..537312003 100644 --- a/ethdb/interface.go +++ b/ethdb/interface.go @@ -41,4 +41,6 @@ type Batch interface { Putter ValueSize() int // amount of data in the batch Write() error + // Reset resets the batch for reuse + Reset() } |