Explain assert

This commit is contained in:
2024-02-19 16:24:51 -08:00
parent cb2f66b4b7
commit 01a29b69b1

View File

@@ -1541,6 +1541,7 @@ struct __attribute__((visibility("hidden"))) ConflictSet::Impl {
void setOldestVersion(int64_t oldestVersion) {
this->oldestVersion = oldestVersion;
Node *prev = firstGeq(root, removalKey).n;
// There's no way to erase removalKey without introducing a key after it
assert(prev != nullptr);
while (keyUpdates-- > 0) {
Node *n = nextLogical(prev);