Don't VACUUM SQLite databases on startup with online delete enabled.

This commit is contained in:
Mark Travis
2015-02-11 13:18:29 -08:00
committed by Tom Ritchford
parent 0339904920
commit 33175187b7

View File

@@ -644,20 +644,6 @@ public:
mWalletDB = std::make_unique <DatabaseCon> (setup, "wallet.db",
WalletDBInit, WalletDBCount);
if (setup.onlineDelete && mTxnDB && mLedgerDB)
{
{
std::lock_guard <std::recursive_mutex> lock (
mTxnDB->peekMutex());
mTxnDB->getDB()->executeSQL ("VACUUM;");
}
{
std::lock_guard <std::recursive_mutex> lock (
mLedgerDB->peekMutex());
mLedgerDB->getDB()->executeSQL ("VACUUM;");
}
}
return
mRpcDB.get() != nullptr &&
mTxnDB.get () != nullptr &&