mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-20 19:15:54 +00:00
Bugfix.
This commit is contained in:
@@ -274,7 +274,6 @@ void InboundLedgers::clearFailures ()
|
|||||||
Json::Value InboundLedgers::getInfo()
|
Json::Value InboundLedgers::getInfo()
|
||||||
{
|
{
|
||||||
Json::Value ret(Json::objectValue);
|
Json::Value ret(Json::objectValue);
|
||||||
boost::mutex::scoped_lock sl (mLock);
|
|
||||||
|
|
||||||
typedef std::pair<uint256, InboundLedger::pointer> u256_acq_pair;
|
typedef std::pair<uint256, InboundLedger::pointer> u256_acq_pair;
|
||||||
std::vector<u256_acq_pair> acquires;
|
std::vector<u256_acq_pair> acquires;
|
||||||
@@ -282,7 +281,7 @@ Json::Value InboundLedgers::getInfo()
|
|||||||
boost::mutex::scoped_lock sl (mLock);
|
boost::mutex::scoped_lock sl (mLock);
|
||||||
|
|
||||||
acquires.reserve (mLedgers.size ());
|
acquires.reserve (mLedgers.size ());
|
||||||
BOOST_FOREACH (const u256_acq_pair & it, mLedgers)
|
BOOST_FOREACH (const u256_acq_pair & it, mLedgers)
|
||||||
acquires.push_back (it);
|
acquires.push_back (it);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user