mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
Raise the pending save count sooner.
This commit is contained in:
@@ -1188,11 +1188,14 @@ void Ledger::pendSave(bool fromConsensus)
|
||||
if (!fromConsensus && !theApp->isNewFlag(getHash(), SF_SAVED))
|
||||
return;
|
||||
|
||||
{
|
||||
boost::recursive_mutex::scoped_lock sl(sPendingSaveLock);
|
||||
++sPendingSaves;
|
||||
}
|
||||
|
||||
boost::thread(boost::bind(&Ledger::saveAcceptedLedger, shared_from_this(),
|
||||
fromConsensus, theApp->getJobQueue().getLoadEvent(jtDISK))).detach();
|
||||
|
||||
boost::recursive_mutex::scoped_lock sl(sPendingSaveLock);
|
||||
++sPendingSaves;
|
||||
}
|
||||
|
||||
void Ledger::decPendingSaves()
|
||||
|
||||
Reference in New Issue
Block a user