From 1496aa106bbabd027ccf43809879d09276bc649c Mon Sep 17 00:00:00 2001 From: Andrew Noyes Date: Tue, 12 Mar 2024 11:44:58 -0700 Subject: [PATCH] Avoid an unnecessary node0 to node4 transition --- ConflictSet.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ConflictSet.cpp b/ConflictSet.cpp index 02b2202..87b0498 100644 --- a/ConflictSet.cpp +++ b/ConflictSet.cpp @@ -1729,7 +1729,8 @@ template auto *old = *self; int64_t oldMaxVersion = maxVersion(old, impl); - *self = allocators->node0.allocate(partialKeyIndex); + // *self will have one child + *self = allocators->node4.allocate(partialKeyIndex); memcpy((char *)*self + kNodeCopyBegin, (char *)old + kNodeCopyBegin, kNodeCopySize);