Full Refactor of LoadManager

This commit is contained in:
Vinnie Falco
2013-06-23 21:26:44 -07:00
parent 5c21ce5b3c
commit 36ecca14d7
18 changed files with 1222 additions and 1027 deletions

View File

@@ -616,6 +616,9 @@ void NetworkOPs::checkState (const boost::system::error_code& result)
if ((result == boost::asio::error::operation_aborted) || theConfig.RUN_STANDALONE)
{
// VFALCO NOTE Should never get here. This is probably dead code.
// If RUN_STANDALONE is set then this function isn't called.
//
WriteLog (lsFATAL, NetworkOPs) << "Network state timer error: " << result;
return;
}
@@ -623,7 +626,7 @@ void NetworkOPs::checkState (const boost::system::error_code& result)
{
ScopedLock sl (theApp->getMasterLock ());
theApp->getLoadManager ().noDeadLock ();
theApp->getLoadManager ().resetDeadlockDetector ();
std::vector<Peer::pointer> peerList = theApp->getPeers ().getPeerVector ();