mirror of
https://github.com/Xahau/xahaud.git
synced 2025-11-28 22:45:49 +00:00
Don't VACUUM SQLite databases on startup with online delete enabled.
This commit is contained in:
committed by
Tom Ritchford
parent
0339904920
commit
33175187b7
@@ -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 &&
|
||||
|
||||
Reference in New Issue
Block a user