mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
If we detect a missing node in a ledger we're supposed to have full,
re-acquire that ledger to fill the hole.
This commit is contained in:
@@ -345,6 +345,7 @@ public:
|
||||
|
||||
protected:
|
||||
uint32 mSeq;
|
||||
uint32 mLedgerSeq; // sequence number of ledger this is part of
|
||||
mutable boost::recursive_mutex mLock;
|
||||
boost::unordered_map<SHAMapNode, SHAMapTreeNode::pointer> mTNByID;
|
||||
|
||||
@@ -395,6 +396,8 @@ public:
|
||||
// Remove nodes from memory
|
||||
void dropCache();
|
||||
|
||||
void setLedgerSeq(uint32 lseq) { mLedgerSeq = lseq; }
|
||||
|
||||
// hold the map stable across operations
|
||||
ScopedLock Lock() const { return ScopedLock(mLock); }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user