func (w *Writer) NewBatch() store.KVBatch { rv := Batch{ store: w.store, merge: store.NewEmulatedMerge(w.store.mo), batch: new(leveldb.Batch), } return &rv }
func (b *Batch) Reset() { b.batch.Reset() b.merge = store.NewEmulatedMerge(b.store.mo) }