Commit c386d06a authored by Mukund Sivaraman's avatar Mukund Sivaraman
Browse files

[2811] Don't call rebalance for subtree roots

parent 56f41442
......@@ -1864,11 +1864,13 @@ DomainTree<T>::insert(util::MemorySegment& mem_sgmt,
} else if (order < 0) {
node->setSubTreeRoot(false);
parent->left_ = node;
insertRebalance(current_root, node);
} else {
node->setSubTreeRoot(false);
parent->right_ = node;
insertRebalance(current_root, node);
}
insertRebalance(current_root, node);
if (new_node != NULL) {
*new_node = node;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment