forked from weaselab/conflict-set
Update stale comments
This commit is contained in:
+3
-3
@@ -2705,8 +2705,8 @@ bool checkRangeRead(Node *n, std::span<const uint8_t> begin,
|
|||||||
|
|
||||||
auto remaining = begin.subspan(0, lcp);
|
auto remaining = begin.subspan(0, lcp);
|
||||||
Arena arena;
|
Arena arena;
|
||||||
// If the common prefix isn't a prefix of any physical entry in the tree, we
|
|
||||||
// can go to "downLeftSpine"
|
// Advance down common prefix, but stay on a physical path in the tree
|
||||||
for (;; ++tls->range_read_iterations_accum) {
|
for (;; ++tls->range_read_iterations_accum) {
|
||||||
assert(getSearchPath(arena, n) <=>
|
assert(getSearchPath(arena, n) <=>
|
||||||
begin.subspan(0, lcp - remaining.size()) ==
|
begin.subspan(0, lcp - remaining.size()) ==
|
||||||
@@ -2750,7 +2750,7 @@ bool checkRangeRead(Node *n, std::span<const uint8_t> begin,
|
|||||||
return checkRangeRightSide(n, end, lcp, readVersion, tls);
|
return checkRangeRightSide(n, end, lcp, readVersion, tls);
|
||||||
}
|
}
|
||||||
|
|
||||||
// This makes it safe to check maxVersion within CheckRangeLeftSide. If this
|
// This makes it safe to check maxVersion within checkRangeLeftSide. If this
|
||||||
// were false, then we would have returned above since lcp == begin.size().
|
// were false, then we would have returned above since lcp == begin.size().
|
||||||
assert(!(n->parent == nullptr && begin.size() == 0));
|
assert(!(n->parent == nullptr && begin.size() == 0));
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user