|
|
@@ -299,6 +299,10 @@ func (b *ldbBatch) ValueSize() int {
|
|
|
return b.size
|
|
|
}
|
|
|
|
|
|
+func (b *ldbBatch) Reset() {
|
|
|
+ b.b.Reset()
|
|
|
+}
|
|
|
+
|
|
|
type table struct {
|
|
|
db Database
|
|
|
prefix string
|
|
|
@@ -358,3 +362,7 @@ func (tb *tableBatch) Write() error {
|
|
|
func (tb *tableBatch) ValueSize() int {
|
|
|
return tb.batch.ValueSize()
|
|
|
}
|
|
|
+
|
|
|
+func (tb *tableBatch) Reset() {
|
|
|
+ tb.batch.Reset()
|
|
|
+}
|