示例#1
0
文件: batch.go 项目: janelia-flyem/go
// Clear removes all the enqueued Put and Deletes in the WriteBatch.
func (w *WriteBatch) Clear() {
	C.leveldb_writebatch_clear(w.wbatch)
}
示例#2
0
文件: batch.go 项目: malloc-fi/vantaa
func (w *WriteBatch) Rollback() error {
	C.leveldb_writebatch_clear(w.wbatch)

	return nil
}
示例#3
0
文件: batch.go 项目: Gohan/ledisdb
func (w *WriteBatch) Rollback() {
	C.leveldb_writebatch_clear(w.wbatch)
}