Track when a node was last accessed.

This commit is contained in:
JoelKatz
2012-12-14 09:56:28 -08:00
parent f5e70fdcf3
commit bc3f641373
3 changed files with 6 additions and 4 deletions

View File

@@ -144,6 +144,7 @@ SHAMapTreeNode::pointer SHAMap::checkCacheNode(const SHAMapNode& iNode)
boost::unordered_map<SHAMapNode, SHAMapTreeNode::pointer>::iterator it = mTNByID.find(iNode);
if (it == mTNByID.end())
return SHAMapTreeNode::pointer();
it->second->touch(mSeq);
return it->second;
}