MCPcopy Create free account
hub / github.com/Snapchat/KeyDB / RocksDbOptions

Method RocksDbOptions

src/storage/rocksdbfactory.cpp:43–53  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

41}
42
43rocksdb::Options RocksDBStorageFactory::RocksDbOptions()
44{
45 rocksdb::Options options = DefaultRocksDBOptions();
46 options.max_open_files = filedsRequired();
47 options.sst_file_manager = m_pfilemanager;
48 options.create_if_missing = true;
49 options.create_missing_column_families = true;
50 options.info_log_level = rocksdb::ERROR_LEVEL;
51 options.max_total_wal_size = 1 * 1024 * 1024 * 1024;
52 return options;
53}
54
55RocksDBStorageFactory::RocksDBStorageFactory(const char *dbfile, int dbnum, const char *rgchConfig, size_t cchConfig)
56 : m_path(dbfile)

Callers

nothing calls this directly

Calls 1

DefaultRocksDBOptionsFunction · 0.85

Tested by

no test coverage detected