Add a spec for fixupMaxVersion
This commit is contained in:
1 parent
647ba5beb1
commit
9b6dd51b85
1 file changed
+5
-1
+5
-1
@@ -2902,7 +2902,11 @@ horizontalMax16(InternalVersionT *vs, InternalVersionT) {
|
|||||||
return max;
|
return max;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Precondition: `node->entryPresent`, and node is not the root
|
/** @pre `node` is not the root, `node->entryPresent`, and `writeContext !=
|
||||||
|
* nullptr`.
|
||||||
|
* @post `maxVersion(node)` is the max of `writeContext->zero` and the max
|
||||||
|
* version of all logical keys starting with the search path of `node`.
|
||||||
|
*/
|
||||||
void fixupMaxVersion(Node *node, WriteContext *writeContext) {
|
void fixupMaxVersion(Node *node, WriteContext *writeContext) {
|
||||||
assert(node->parent);
|
assert(node->parent);
|
||||||
InternalVersionT max;
|
InternalVersionT max;
|
||||||
|
|||||||
Reference in new issue
Block a user