mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-26 05:55:51 +00:00
Bugfix.
This commit is contained in:
@@ -160,9 +160,6 @@ void Application::setup()
|
|||||||
boost::thread t7(boost::bind(&InitDB, &mPathFindDB, "pathfind.db", PathFindDBInit, PathFindDBCount));
|
boost::thread t7(boost::bind(&InitDB, &mPathFindDB, "pathfind.db", PathFindDBInit, PathFindDBCount));
|
||||||
t4.join(); t6.join(); t7.join();
|
t4.join(); t6.join(); t7.join();
|
||||||
|
|
||||||
if (mHashedObjectStore.isLevelDB())
|
|
||||||
{
|
|
||||||
WriteLog (lsINFO, Application) << "LevelDB used for nodes";
|
|
||||||
leveldb::Options options;
|
leveldb::Options options;
|
||||||
options.create_if_missing = true;
|
options.create_if_missing = true;
|
||||||
options.block_cache = leveldb::NewLRUCache(theConfig.getSize(siHashNodeDBCache) * 1024 * 1024);
|
options.block_cache = leveldb::NewLRUCache(theConfig.getSize(siHashNodeDBCache) * 1024 * 1024);
|
||||||
@@ -170,6 +167,10 @@ void Application::setup()
|
|||||||
options.filter_policy = leveldb::NewBloomFilterPolicy(10);
|
options.filter_policy = leveldb::NewBloomFilterPolicy(10);
|
||||||
if (theConfig.LDB_IMPORT)
|
if (theConfig.LDB_IMPORT)
|
||||||
options.write_buffer_size = 32 << 20;
|
options.write_buffer_size = 32 << 20;
|
||||||
|
|
||||||
|
if (mHashedObjectStore.isLevelDB())
|
||||||
|
{
|
||||||
|
WriteLog (lsINFO, Application) << "LevelDB used for nodes";
|
||||||
leveldb::Status status = leveldb::DB::Open(options, (theConfig.DATA_DIR / "hashnode").string(), &mHashNodeLDB);
|
leveldb::Status status = leveldb::DB::Open(options, (theConfig.DATA_DIR / "hashnode").string(), &mHashNodeLDB);
|
||||||
if (!status.ok() || !mHashNodeLDB)
|
if (!status.ok() || !mHashNodeLDB)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user