forked from weaselab/conflict-set
Fix bugs
This commit is contained in:
+6
-2
@@ -101,7 +101,9 @@ struct BitSet {
|
||||
|
||||
int firstSetGeq(int i) const {
|
||||
assert(0 <= i);
|
||||
assert(i < 256);
|
||||
if (i >= 256) {
|
||||
return -1;
|
||||
}
|
||||
if (i < 128) {
|
||||
int a = std::countr_zero(lo >> i);
|
||||
if (a < 128) {
|
||||
@@ -1319,9 +1321,11 @@ void addWriteRange(Node *&root, int64_t oldestVersion,
|
||||
break;
|
||||
}
|
||||
|
||||
n = getChildExists(n, c);
|
||||
n->maxVersion = std::max(n->maxVersion, w.writeVersion);
|
||||
|
||||
remaining = remaining.subspan(n->partialKeyLen + 1,
|
||||
remaining.size() - (n->partialKeyLen + 1));
|
||||
n = getChildExists(n, c);
|
||||
}
|
||||
|
||||
Node **useAsRoot = n->parent == nullptr
|
||||
|
||||
Reference in New Issue
Block a user