mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-26 22:15:52 +00:00
Remove pending save logic. Replace with job count logic.
Prioritize newer ledgers over clients.
This commit is contained in:
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user