Tiny cleanup.

This commit is contained in:
JoelKatz
2012-04-26 18:58:03 -07:00
parent a1c3375237
commit c231c3571e

View File

@@ -526,7 +526,10 @@ bool SHAMap::updateGiveItem(SHAMapItem::pointer item, bool isTransaction)
stack.pop(); stack.pop();
if (!node->isLeaf() || (node->peekItem()->getTag() == tag) ) if (!node->isLeaf() || (node->peekItem()->getTag() == tag) )
{
assert(false);
return false; return false;
}
returnNode(node, true); returnNode(node, true);
if (!node->setItem(item, isTransaction ? SHAMapTreeNode::tnTRANSACTION : SHAMapTreeNode::tnACCOUNT_STATE)) if (!node->setItem(item, isTransaction ? SHAMapTreeNode::tnTRANSACTION : SHAMapTreeNode::tnACCOUNT_STATE))