mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Move LevelDB options initialization into the factory
This commit is contained in:
@@ -214,6 +214,10 @@ private:
|
||||
|
||||
LevelDBBackendFactory::LevelDBBackendFactory ()
|
||||
{
|
||||
leveldb::Options options;
|
||||
options.create_if_missing = true;
|
||||
options.block_cache = leveldb::NewLRUCache (getConfig ().getSize (
|
||||
siHashNodeDBCache) * 1024 * 1024);
|
||||
}
|
||||
|
||||
LevelDBBackendFactory::~LevelDBBackendFactory ()
|
||||
|
||||
Reference in New Issue
Block a user