Start adding support for concurrent I/O.

This commit is contained in:
JoelKatz
2012-11-09 14:14:47 -08:00
parent 82d26ea756
commit 40527cca2b
5 changed files with 15 additions and 2 deletions

View File

@@ -1384,7 +1384,9 @@ Json::Value RPCHandler::doCommand(const std::string& command, Json::Value& param
return rpcError(rpcNO_NETWORK);
}
// XXX Should verify we have a current ledger.
else if ((commandsA[i].iOptions & optCurrent) && false)
boost::recursive_mutex::scoped_lock sl(theApp->getMasterLock());
if ((commandsA[i].iOptions & optCurrent) && false)
{
return rpcError(rpcNO_CURRENT);
}