Find two more call sites for getFirstChildExists

This commit is contained in:
2024-08-01 13:37:44 -07:00
parent 9c5e5863c2
commit 71a84057cb

View File

@@ -1882,9 +1882,7 @@ bool checkPointRead(Node *n, const std::span<const uint8_t> key,
if (n->entryPresent) {
return n->entry.pointVersion <= readVersion;
}
int c = getChildGeq(n, 0);
assert(c >= 0);
n = getChildExists(n, c);
n = getFirstChildExists(n);
goto downLeftSpine;
}
@@ -3669,9 +3667,7 @@ Node *firstGeqLogical(Node *n, const std::span<const uint8_t> key) {
if (n->entryPresent) {
return n;
}
int c = getChildGeq(n, 0);
assert(c >= 0);
n = getChildExists(n, c);
n = getFirstChildExists(n);
goto downLeftSpine;
}