Simplify condition for TooOld in check

This commit is contained in:
2024-07-03 16:39:22 -07:00
parent 75a2b8d06c
commit e2927bf0fa
+3 -4
View File
@@ -2884,11 +2884,10 @@ struct __attribute__((visibility("hidden"))) ConflictSet::Impl {
const auto &r = reads[i];
auto begin = std::span<const uint8_t>(r.begin.p, r.begin.len);
auto end = std::span<const uint8_t>(r.end.p, r.end.len);
assert(oldestVersionFullPrecision >=
newestVersionFullPrecision - kNominalVersionWindow);
result[i] =
reads[i].readVersion < oldestVersionFullPrecision ||
reads[i].readVersion <
newestVersionFullPrecision - kNominalVersionWindow
? TooOld
reads[i].readVersion < oldestVersionFullPrecision ? TooOld
: (end.size() > 0
? checkRangeRead(root, begin, end,
InternalVersionT(reads[i].readVersion), this)