// NewMVCCRocksDB returns a new MVCCRocksDB object.
NewMVCCRocksDB returns a new MVCCRocksDB object.
// NewMVCCRocksDB returns a new MVCCRocksDB object .
func NewMVCCRocksDB(path string) (*MVCCRocksDB, error) {
	var (
		d   *gorocksdb.DB
		err error
	)
	bbto := gorocksdb.NewDefaultBlockBasedTableOptions()
	bbto.SetBlockCache(gorocksdb.NewLRUCache(600 * 1024 * 1024))
	opts := gorocksdb.NewDefaultOptions()
	opts.SetBlockBasedTableFactory(bbto)
	opts.SetCreateIfMissing(true)
	d, err = gorocksdb.OpenDb(opts, path)
	return &MVCCRocksDB{db: d, deadlockDetector: deadlock.NewDetector()}, errors.Trace(err)
}
func NewMVCCRocksDB ( path string ) ( * MVCCRocksDB , error ) { var ( d * gorocksdb . DB err error ) bbto := gorocksdb . NewDefaultBlockBasedTableOptions ( ) bbto . SetBlockCache ( gorocksdb . NewLRUCache ( 600 * 1024 * 1024 ) ) opts := gorocksdb . NewDefaultOptions ( ) opts . SetBlockBasedTableFactory ( bbto ) opts . SetCreateIfMissing ( true ) d , err = gorocksdb . OpenDb ( opts , path ) return & MVCCRocksDB { db : d , deadlockDetector : deadlock . NewDetector ( ) } , errors . Trace ( err ) }
NewMVCCRocksDB returns a new MVCCRocksDB object.
NewMVCCRocksDB returns a new MVCCRocksDB object .