From d51533290601ce29b389cacda804576e4fd86e27 Mon Sep 17 00:00:00 2001 From: Andrew Noyes Date: Wed, 17 Jan 2024 14:13:22 -0800 Subject: [PATCH] Require oldestVersion increasing --- ConflictSet.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ConflictSet.h b/ConflictSet.h index 3ea5c31..41f3853 100644 --- a/ConflictSet.h +++ b/ConflictSet.h @@ -42,7 +42,8 @@ struct ConflictSet { /// overlapping ranges. Reads intersecting writes where readVersion < /// writeVersion will result in `Conflict` (or `TooOld`, eventually) void addWrites(const WriteRange *writes, int count); - /// Reads where readVersion < oldestVersion will result in `TooOld` + /// Reads where readVersion < oldestVersion will result in `TooOld`. Must be + /// greater than any previous oldestVersion. void setOldestVersion(int64_t oldestVersion); /// Reads where readVersion < oldestVersion will result in `TooOld`. There are