From 27b8415d0c9b7e44d35abcda658bcec1e9aabfd4 Mon Sep 17 00:00:00 2001 From: JoelKatz Date: Mon, 9 Dec 2013 02:32:49 -0800 Subject: [PATCH] During old pathfinding, unlock earlier. --- src/ripple_app/rpc/RPCHandler.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/ripple_app/rpc/RPCHandler.cpp b/src/ripple_app/rpc/RPCHandler.cpp index 23da3fa7da..6b9f7daa13 100644 --- a/src/ripple_app/rpc/RPCHandler.cpp +++ b/src/ripple_app/rpc/RPCHandler.cpp @@ -1545,6 +1545,11 @@ Json::Value RPCHandler::doRipplePathFind (Json::Value params, Resource::Charge& } else { + loadType = Resource::feeHighBurdenRPC; + Ledger::pointer lSnapShot = boost::make_shared (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 (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);