Unnest some in checkPointRead
This commit is contained in:
@@ -808,12 +808,10 @@ bool checkPointRead(Node *n, const std::span<const uint8_t> key,
|
|||||||
assert(c >= 0);
|
assert(c >= 0);
|
||||||
n = getChildExists(n, c);
|
n = getChildExists(n, c);
|
||||||
goto downLeftSpine;
|
goto downLeftSpine;
|
||||||
} else {
|
}
|
||||||
|
|
||||||
int c = getChildGeq(n, remaining[0]);
|
int c = getChildGeq(n, remaining[0]);
|
||||||
if (c == remaining[0]) {
|
if (c != remaining[0]) {
|
||||||
n = getChildExists(n, c);
|
|
||||||
remaining = remaining.subspan(1, remaining.size() - 1);
|
|
||||||
} else {
|
|
||||||
if (c >= 0) {
|
if (c >= 0) {
|
||||||
n = getChildExists(n, c);
|
n = getChildExists(n, c);
|
||||||
goto downLeftSpine;
|
goto downLeftSpine;
|
||||||
@@ -822,7 +820,10 @@ bool checkPointRead(Node *n, const std::span<const uint8_t> key,
|
|||||||
goto downLeftSpine;
|
goto downLeftSpine;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
n = getChildExists(n, c);
|
||||||
|
remaining = remaining.subspan(1, remaining.size() - 1);
|
||||||
|
|
||||||
if (n->partialKeyLen > 0) {
|
if (n->partialKeyLen > 0) {
|
||||||
int commonLen = std::min<int>(n->partialKeyLen, remaining.size());
|
int commonLen = std::min<int>(n->partialKeyLen, remaining.size());
|
||||||
int i = longestCommonPrefix(n->partialKey, remaining.data(), commonLen);
|
int i = longestCommonPrefix(n->partialKey, remaining.data(), commonLen);
|
||||||
|
Reference in New Issue
Block a user