Support ephemeral cache with SQLite.

This commit is contained in:
JoelKatz
2013-06-05 13:24:20 -07:00
parent b7920f40b7
commit 2af49fc55a

View File

@@ -179,6 +179,13 @@ void Application::setup()
StopSustain();
exit(3);
}
}
else
{
WriteLog (lsINFO, Application) << "SQLite used for nodes";
boost::thread t5(boost::bind(&InitDB, &mHashNodeDB, "hashnode.db", HashNodeDBInit, HashNodeDBCount));
t5.join();
}
if (!theConfig.LDB_EPHEMERAL.empty())
{
@@ -191,13 +198,6 @@ void Application::setup()
exit(3);
}
}
}
else
{
WriteLog (lsINFO, Application) << "SQLite used for nodes";
boost::thread t5(boost::bind(&InitDB, &mHashNodeDB, "hashnode.db", HashNodeDBInit, HashNodeDBCount));
t5.join();
}
mTxnDB->getDB()->setupCheckpointing(&mJobQueue);
mLedgerDB->getDB()->setupCheckpointing(&mJobQueue);