This commit is contained in:
JoelKatz
2013-05-08 10:52:53 -07:00
parent 2b6a91143b
commit 1a238c03fe

View File

@@ -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);