Remove pending save logic. Replace with job count logic.

Prioritize newer ledgers over clients.
This commit is contained in:
JoelKatz
2013-03-06 20:57:11 -08:00
parent e080ddb0fc
commit ff8dbcf5ff
3 changed files with 5 additions and 35 deletions

View File

@@ -388,7 +388,7 @@ void LedgerMaster::setFullLedger(Ledger::ref ledger)
return;
}
if (Ledger::getPendingSaves() > 2)
if (theApp->getJobQueue().getJobCount(jtPUBOLDLEDGER) > 2)
{
mTooFast = true;
cLog(lsDEBUG) << "Too many pending ledger saves";