Require entry present for fixupMaxVersion
This commit is contained in:
@@ -3049,13 +3049,11 @@ void addPointWrite(Node *&root, std::span<const uint8_t> key,
|
||||
}
|
||||
}
|
||||
|
||||
// Precondition: `node->entryPresent`
|
||||
void fixupMaxVersion(Node *node, ConflictSet::Impl *impl, WriteContext *tls) {
|
||||
InternalVersionT max;
|
||||
if (node->entryPresent) {
|
||||
max = std::max(node->entry.pointVersion, tls->zero);
|
||||
} else {
|
||||
max = tls->zero;
|
||||
}
|
||||
assert(node->entryPresent);
|
||||
max = std::max(node->entry.pointVersion, tls->zero);
|
||||
switch (node->getType()) {
|
||||
case Type_Node0:
|
||||
break;
|
||||
|
Reference in New Issue
Block a user