revert change
This commit is contained in:
@ -66,18 +66,11 @@ auto create_rocksdb(
|
|||||||
"failed to remove " + name + " db|" + path);
|
"failed to remove " + name + " db|" + path);
|
||||||
}
|
}
|
||||||
|
|
||||||
rocksdb::BlockBasedTableOptions table_options{};
|
|
||||||
table_options.block_cache =
|
|
||||||
rocksdb::NewLRUCache(2ULL * 1024ULL * 1024LL * 1024LL);
|
|
||||||
table_options.cache_index_and_filter_blocks = true;
|
|
||||||
|
|
||||||
rocksdb::Options options{};
|
rocksdb::Options options{};
|
||||||
options.create_if_missing = true;
|
options.create_if_missing = true;
|
||||||
options.create_missing_column_families = true;
|
options.create_missing_column_families = true;
|
||||||
options.db_log_dir = cfg.get_log_directory();
|
options.db_log_dir = cfg.get_log_directory();
|
||||||
options.keep_log_file_num = 10;
|
options.keep_log_file_num = 10;
|
||||||
options.table_factory.reset(
|
|
||||||
rocksdb::NewBlockBasedTableFactory(table_options));
|
|
||||||
|
|
||||||
rocksdb::TransactionDB *ptr{};
|
rocksdb::TransactionDB *ptr{};
|
||||||
auto status = rocksdb::TransactionDB::Open(
|
auto status = rocksdb::TransactionDB::Open(
|
||||||
|
Reference in New Issue
Block a user