During old pathfinding, unlock earlier.

This commit is contained in:
JoelKatz
2013-12-09 02:32:49 -08:00
parent e1e81e5d97
commit 27b8415d0c

View File

@@ -1545,6 +1545,11 @@ Json::Value RPCHandler::doRipplePathFind (Json::Value params, Resource::Charge&
}
else
{
loadType = Resource::feeHighBurdenRPC;
Ledger::pointer lSnapShot = boost::make_shared<Ledger> (boost::ref (*lpLedger), false);
masterLockHolder.unlock (); // As long as we have a locked copy of the ledger, we can unlock.
Json::Value jvSrcCurrencies;
if (params.isMember ("source_currencies"))
@@ -1567,11 +1572,6 @@ Json::Value RPCHandler::doRipplePathFind (Json::Value params, Resource::Charge&
}
}
loadType = Resource::feeHighBurdenRPC;
Ledger::pointer lSnapShot = boost::make_shared<Ledger> (boost::ref (*lpLedger), false);
masterLockHolder.unlock (); // As long as we have a locked copy of the ledger, we can unlock.
// Fill in currencies destination will accept
Json::Value jvDestCur (Json::arrayValue);