Skip to content

Commit

Permalink
logdb: fixed leveldb based logdb to actually clear the write batch.
Browse files Browse the repository at this point in the history
  • Loading branch information
lni committed Mar 5, 2019
1 parent d6fb7f6 commit 3797af1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions internal/logdb/kv_leveldb.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ func (w *leveldbWriteBatch) Put(key []byte, val []byte) {
}

func (w *leveldbWriteBatch) Clear() {
w.wb.Clear()
w.count = 0
}

Expand Down

0 comments on commit 3797af1

Please sign in to comment.