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:
JoelKatz
2013-03-12 16:53:30 -07:00
parent c85fc7ef64
commit 2248d92a33
5 changed files with 87 additions and 95 deletions

View File

@@ -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