Update comments

This commit is contained in:
2024-08-12 17:05:21 -07:00
parent 359b0b29ff
commit 45995e3307

View File

@@ -1177,9 +1177,10 @@ consumePartialKey(Node *&self, std::span<const uint8_t> &key,
} }
} }
// Caller is responsible for assigning a non-null pointer to the returned // Return the next node along the search path of key, consuming bytes of key
// reference if null. Updates child's max version to `newMaxVersion` if child // such that the search path of the result + key is the same as the search path
// exists but does not have a partial key. // of self + key before the call. Creates a node if necessary. Updates
// `maxVersion` for result.
Node *&getOrCreateChild(Node *&self, std::span<const uint8_t> &key, Node *&getOrCreateChild(Node *&self, std::span<const uint8_t> &key,
InternalVersionT newMaxVersion, WriteContext *tls) { InternalVersionT newMaxVersion, WriteContext *tls) {