We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2890b99 commit 1b29799Copy full SHA for 1b29799
fdbclient/include/fdbclient/FDBTypes.h
@@ -342,7 +342,11 @@ struct KeyRangeRef {
342
return false; // uncovered gap between clone.begin and r.begin
343
if (clone.end <= r.end)
344
return true; // range is fully covered
345
- if (clone.end > r.begin)
+ // If a range of ranges is totally at the left of clone,
346
+ // clone needs not update
347
+ // If a range of ranges is partially at the left of clone,
348
+ // clone = clone - the overlap
349
+ if (clone.end > r.end && r.end > clone.begin)
350
// {clone.begin, r.end} is covered. need to check coverage for {r.end, clone.end}
351
clone = KeyRangeRef(r.end, clone.end);
352
}
0 commit comments