From 45995e3307ce61af0c14a74cb61ffee82683d60b Mon Sep 17 00:00:00 2001 From: Andrew Noyes Date: Mon, 12 Aug 2024 17:05:21 -0700 Subject: [PATCH] Update comments --- ConflictSet.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/ConflictSet.cpp b/ConflictSet.cpp index 19f7f0f..9ddd185 100644 --- a/ConflictSet.cpp +++ b/ConflictSet.cpp @@ -1177,9 +1177,10 @@ consumePartialKey(Node *&self, std::span &key, } } -// Caller is responsible for assigning a non-null pointer to the returned -// reference if null. Updates child's max version to `newMaxVersion` if child -// exists but does not have a partial key. +// Return the next node along the search path of key, consuming bytes of key +// such that the search path of the result + key is the same as the search path +// of self + key before the call. Creates a node if necessary. Updates +// `maxVersion` for result. Node *&getOrCreateChild(Node *&self, std::span &key, InternalVersionT newMaxVersion, WriteContext *tls) {