mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Tidy up hardened containers (RIPD-380):
* Rename hardened containers for clarity * Fixes https://ripplelabs.atlassian.net/browse/RIPD-380
This commit is contained in:
committed by
Vinnie Falco
parent
e6f4eedb1e
commit
58547f6997
@@ -59,7 +59,7 @@ public:
|
||||
{
|
||||
if (mConsensusLedger.isNonZero() && (mValidationLedger != mConsensusLedger) && (hash != mConsensusLedger))
|
||||
{
|
||||
ripple::unordered_map<uint256, InboundLedger::pointer>::iterator it = mLedgers.find (mConsensusLedger);
|
||||
hash_map<uint256, InboundLedger::pointer>::iterator it = mLedgers.find (mConsensusLedger);
|
||||
if (it != mLedgers.end ())
|
||||
{
|
||||
oldLedger = it->second;
|
||||
@@ -72,7 +72,7 @@ public:
|
||||
{
|
||||
if (mValidationLedger.isNonZero() && (mValidationLedger != mConsensusLedger) && (hash != mValidationLedger))
|
||||
{
|
||||
ripple::unordered_map<uint256, InboundLedger::pointer>::iterator it = mLedgers.find (mValidationLedger);
|
||||
hash_map<uint256, InboundLedger::pointer>::iterator it = mLedgers.find (mValidationLedger);
|
||||
if (it != mLedgers.end ())
|
||||
{
|
||||
oldLedger = it->second;
|
||||
@@ -82,7 +82,7 @@ public:
|
||||
mValidationLedger = hash;
|
||||
}
|
||||
|
||||
ripple::unordered_map<uint256, InboundLedger::pointer>::iterator it = mLedgers.find (hash);
|
||||
hash_map<uint256, InboundLedger::pointer>::iterator it = mLedgers.find (hash);
|
||||
if (it != mLedgers.end ())
|
||||
{
|
||||
ret = it->second;
|
||||
@@ -111,7 +111,7 @@ public:
|
||||
{
|
||||
ScopedLockType sl (mLock);
|
||||
|
||||
ripple::unordered_map<uint256, InboundLedger::pointer>::iterator it = mLedgers.find (hash);
|
||||
hash_map<uint256, InboundLedger::pointer>::iterator it = mLedgers.find (hash);
|
||||
if (it != mLedgers.end ())
|
||||
{
|
||||
ret = it->second;
|
||||
@@ -376,7 +376,7 @@ public:
|
||||
private:
|
||||
clock_type& m_clock;
|
||||
|
||||
typedef ripple::unordered_map <uint256, InboundLedger::pointer> MapType;
|
||||
typedef hash_map <uint256, InboundLedger::pointer> MapType;
|
||||
|
||||
typedef RippleRecursiveMutex LockType;
|
||||
typedef std::unique_lock <LockType> ScopedLockType;
|
||||
|
||||
Reference in New Issue
Block a user