Use getInTree in insert

This commit is contained in:
2024-03-11 22:22:49 -07:00
parent 87d650ff00
commit 1dcb380c73

View File

@@ -1732,9 +1732,7 @@ void addWriteRange(Node *&root, int64_t oldestVersion,
n = child;
}
Node **useAsRoot = n->parent == nullptr
? &root
: &getChildExists(n->parent, n->parentsIndex);
Node **useAsRoot = &getInTree(n, impl);
int consumed = lcp - remaining.size();