mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-27 22:45:52 +00:00
Wrap all peer socket accesses in a strand. This is needed to prevent a fatal
race condition in composed intermediary functions. A few ledger acquire cleanups.
This commit is contained in:
@@ -514,6 +514,8 @@ void Ledger::saveAcceptedLedger(Job&, bool fromConsensus)
|
||||
|
||||
if (theApp->getJobQueue().getJobCountTotal(jtPUBOLDLEDGER) < 2)
|
||||
theApp->getLedgerMaster().resumeAcquiring();
|
||||
else
|
||||
cLog(lsDEBUG) << "no resume, too many pending ledger saves";
|
||||
}
|
||||
|
||||
#ifndef NO_SQLITE3_PREPARE
|
||||
|
||||
Reference in New Issue
Block a user