From 1dcb380c73dddbf05bfc15cc3532ff49afdc5de0 Mon Sep 17 00:00:00 2001 From: Andrew Noyes Date: Mon, 11 Mar 2024 22:22:49 -0700 Subject: [PATCH] Use getInTree in insert --- ConflictSet.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/ConflictSet.cpp b/ConflictSet.cpp index 2fd4735..db5e24b 100644 --- a/ConflictSet.cpp +++ b/ConflictSet.cpp @@ -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();