// Destroy deallocates the BlockBasedTableOptions object.
func (self *BlockBasedTableOptions) Destroy() {
	C.rocksdb_block_based_options_destroy(self.c)
	self.c = nil
	self.fp = nil
	self.cache = nil
	self.comp_cache = nil
}
예제 #2
0
파일: options.go 프로젝트: zackb/rocksdb
func (o *BlockBasedOptions) Close() {
	C.rocksdb_block_based_options_destroy(o.Opt)
}
예제 #3
0
파일: options.go 프로젝트: cayleydb/dgraph
// Close deallocates the Options, freeing its underlying C struct.
func (o *Options) Close() {
	C.rocksdb_options_destroy(o.Opt)
	C.rocksdb_block_based_options_destroy(o.Bopt)
}
예제 #4
0
파일: table_options.go 프로젝트: CowLeo/qdb
// Close deallocates the TableOptions, freeing its underlying C struct.
func (o *TableOptions) Close() {
	C.rocksdb_block_based_options_destroy(o.Opt)
}
예제 #5
0
// Destroy deallocates the BlockBasedTableOptions object.
func (opts *BlockBasedTableOptions) Destroy() {
	C.rocksdb_block_based_options_destroy(opts.c)
	opts.c = nil
	opts.cache = nil
	opts.compCache = nil
}
예제 #6
0
// Release deallocates the BlockBasedTableOptions object.
func (o *BlockBasedTableOptions) Release() {
	C.rocksdb_block_based_options_destroy(o.c)
	o.c = nil
	o.cache = nil
	o.compCache = nil
}