Cosmetic changes.

This commit is contained in:
JoelKatz
2012-05-15 18:20:07 -07:00
parent 4ad3532037
commit 98d2733706

View File

@@ -476,7 +476,8 @@ bool SHAMap::addGiveItem(SHAMapItem::pointer item, bool isTransaction)
#ifdef ST_DEBUG
std::cerr << "need new inner node at " << node->getDepth() << std::endl;
#endif
SHAMapTreeNode::pointer newNode=boost::make_shared<SHAMapTreeNode>(node->getChildNodeID(b1), mSeq);
SHAMapTreeNode::pointer newNode =
boost::make_shared<SHAMapTreeNode>(node->getChildNodeID(b1), mSeq);
newNode->makeInner();
if(!mTNByID.insert(std::make_pair(SHAMapNode(*newNode), newNode)).second)
assert(false);
@@ -500,9 +501,7 @@ bool SHAMap::addGiveItem(SHAMapItem::pointer item, bool isTransaction)
node->setChildHash(b2, newNode->getNodeHash());
}
prevHash = node->getNodeHash();
assert(prevHash.isNonZero());
dirtyUp(stack, tag, prevHash);
dirtyUp(stack, tag, node->getNodeHash());
return true;
}