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:
JoelKatz
2013-05-08 15:55:52 -07:00
parent ddcebec5a5
commit 41b70c76da
6 changed files with 24 additions and 2 deletions

View File

@@ -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); }