コード例 #1
0
ファイル: batch.go プロジェクト: malloc-fi/vantaa
func (w *WriteBatch) Close() {
	if w.wbatch != nil {
		C.leveldb_writebatch_destroy(w.wbatch)
		w.wbatch = nil
	}

	w.gbatch = nil
}
コード例 #2
0
ファイル: batch.go プロジェクト: janelia-flyem/go
// Close releases the underlying memory of a WriteBatch.
func (w *WriteBatch) Close() {
	C.leveldb_writebatch_destroy(w.wbatch)
}
コード例 #3
0
ファイル: batch.go プロジェクト: Abioy/ledisdb
func (w *WriteBatch) Close() error {
	C.leveldb_writebatch_destroy(w.wbatch)
	w.wbatch = nil

	return nil
}