mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Optimize and clean up SHAMap::iterator:
* Remove dependence on boost::iterator_facade. * Rename iterator to const_iterator. * Change value_type from shared_ptr<SHAMapItem const> to SHAMapItem. * Install a stack-path to the current SHAMapItem in the const_iterator.
This commit is contained in:
committed by
Vinnie Falco
parent
30e068ae17
commit
361f1da5b8
@@ -1334,16 +1334,16 @@ bool ApplicationImp::loadOldLedger (
|
||||
for (auto const& item : txns)
|
||||
{
|
||||
auto const txn =
|
||||
getTransaction(*replayLedger, item->key(),
|
||||
getTransaction(*replayLedger, item.key(),
|
||||
getApp().getMasterTransaction());
|
||||
if (m_journal.info) m_journal.info <<
|
||||
txn->getJson(0);
|
||||
Serializer s;
|
||||
txn->getSTransaction()->add(s);
|
||||
cur->rawTxInsert(item->key(),
|
||||
cur->rawTxInsert(item.key(),
|
||||
std::make_shared<Serializer const>(
|
||||
std::move(s)), nullptr);
|
||||
getApp().getHashRouter().setFlag (item->key(), SF_SIGGOOD);
|
||||
getApp().getHashRouter().setFlag (item.key(), SF_SIGGOOD);
|
||||
}
|
||||
|
||||
// Switch to the mutable snapshot
|
||||
|
||||
Reference in New Issue
Block a user