mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-26 22:15:52 +00:00
Bugfix.
This commit is contained in:
@@ -172,6 +172,7 @@ void Application::setup()
|
|||||||
#ifdef USE_LEVELDB
|
#ifdef USE_LEVELDB
|
||||||
if (mHashedObjectStore.isLevelDB())
|
if (mHashedObjectStore.isLevelDB())
|
||||||
{
|
{
|
||||||
|
cLog(lsFATAL) << "LDB";
|
||||||
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);
|
||||||
@@ -185,12 +186,12 @@ void Application::setup()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
#else
|
#endif
|
||||||
{
|
{
|
||||||
|
cLog(lsFATAL) << "SQLite";
|
||||||
boost::thread t5(boost::bind(&InitDB, &mHashNodeDB, "hashnode.db", HashNodeDBInit, HashNodeDBCount));
|
boost::thread t5(boost::bind(&InitDB, &mHashNodeDB, "hashnode.db", HashNodeDBInit, HashNodeDBCount));
|
||||||
t5.join();
|
t5.join();
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
|
||||||
mTxnDB->getDB()->setupCheckpointing(&mJobQueue);
|
mTxnDB->getDB()->setupCheckpointing(&mJobQueue);
|
||||||
mLedgerDB->getDB()->setupCheckpointing(&mJobQueue);
|
mLedgerDB->getDB()->setupCheckpointing(&mJobQueue);
|
||||||
|
|||||||
Reference in New Issue
Block a user