diff --git a/ConflictSet.cpp b/ConflictSet.cpp index 386b895..0231454 100644 --- a/ConflictSet.cpp +++ b/ConflictSet.cpp @@ -1151,7 +1151,7 @@ Iterator lastLeq(Node *n, const std::span key) { void insert(Node **self_, std::span key, int64_t writeVersion) { for (;;) { auto &self = *self_; - self->maxVersion = writeVersion; + self->maxVersion = std::max(self->maxVersion, writeVersion); if (key.size() == 0) { auto l = lastLeq(self, key); self->entryPresent = true;