Separate ledger publish logic so we can tell if clients are overloading us.

This commit is contained in:
JoelKatz
2012-11-23 12:15:04 -08:00
parent 4065106592
commit 8b53f85f60
5 changed files with 10 additions and 5 deletions

View File

@@ -1002,6 +1002,8 @@ void NetworkOPs::pubLedger(Ledger::ref lpAccepted)
if (NetworkOPs::omDISCONNECTED == getOperatingMode())
return;
LoadEvent::pointer event = theApp->getJobQueue().getLoadEvent(jtPUBLEDGER);
{
boost::interprocess::sharable_lock<boost::interprocess::interprocess_upgradable_mutex> sl(mMonitorLock);