Fix a bug that, under rare circumstances, could lead to SHAMap corruption

This commit is contained in:
JoelKatz
2012-12-29 13:04:17 -08:00
parent 3ff4dc99ad
commit b4004c4676

View File

@@ -540,6 +540,7 @@ bool SHAMap::delItem(const uint256& id)
SHAMapItem::pointer item = onlyBelow(node.get());
if (item)
{
returnNode(node, true);
eraseChildren(node);
#ifdef ST_DEBUG
std::cerr << "Making item node " << *node << std::endl;