mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
rippled.cfg [db_node] options for RocksDB
* open_files and compression.
This commit is contained in:
@@ -163,6 +163,19 @@ public:
|
||||
// options.memtable_factory.reset(
|
||||
// rocksdb::NewHashCuckooRepFactory(options.write_buffer_size));
|
||||
|
||||
if (! keyValues["open_files"].isEmpty())
|
||||
{
|
||||
options.max_open_files = keyValues["open_files"].getIntValue();
|
||||
}
|
||||
|
||||
if (! keyValues["compression"].isEmpty ())
|
||||
{
|
||||
if (keyValues["compression"].getIntValue () == 0)
|
||||
{
|
||||
options.compression = rocksdb::kNoCompression;
|
||||
}
|
||||
}
|
||||
|
||||
rocksdb::DB* db = nullptr;
|
||||
|
||||
rocksdb::Status status = rocksdb::DB::Open (options, m_name, &db);
|
||||
|
||||
Reference in New Issue
Block a user