mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-30 16:05:51 +00:00
Tiny optimization.
This commit is contained in:
@@ -412,8 +412,7 @@ bool SHAMap::hasItem(const uint256& id)
|
|||||||
boost::recursive_mutex::scoped_lock sl(mLock);
|
boost::recursive_mutex::scoped_lock sl(mLock);
|
||||||
SHAMapLeafNode::pointer leaf=walkToLeaf(id, false, false);
|
SHAMapLeafNode::pointer leaf=walkToLeaf(id, false, false);
|
||||||
if(!leaf) return false;
|
if(!leaf) return false;
|
||||||
SHAMapItem::pointer item=leaf->findItem(id);
|
return leaf->hasItem(id);
|
||||||
return (bool) item;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
bool SHAMap::delItem(const uint256& id)
|
bool SHAMap::delItem(const uint256& id)
|
||||||
|
|||||||
Reference in New Issue
Block a user