Interface change! Return TooOld after 2e9 versions

Event if setOldestVersion wasn't called
This commit is contained in:
2024-06-30 15:25:44 -07:00
parent 8e3eacb54f
commit a68ad5dd17
4 changed files with 34 additions and 4 deletions

View File

@@ -54,6 +54,8 @@ struct __attribute__((__visibility__("default"))) ConflictSet {
/** `end` having length 0 denotes that this range is the single key {begin}.
* Otherwise this denotes the range [begin, end) */
Key end;
/** `readVersion` older than the the oldestVersion or the version of the
* latest call to `addWrites` minus two billion will result in `TooOld` */
int64_t readVersion;
};
@@ -141,6 +143,8 @@ typedef struct {
/** `end` having length 0 denotes that this range is the single key {begin}.
* Otherwise this denotes the range [begin, end) */
ConflictSet_Key end;
/** `readVersion` older than the the oldestVersion or the version of the
* latest call to `addWrites` minus two billion will result in `TooOld` */
int64_t readVersion;
} ConflictSet_ReadRange;