Remove sorted/canonicalized requirement for reads

This commit is contained in:
2024-01-31 12:45:14 -08:00
parent e527e198c6
commit e9d4403f3c

View File

@@ -38,9 +38,7 @@ struct __attribute__((__visibility__("default"))) ConflictSet {
* calls to `addWrites` */
int64_t writeVersion;
};
/** `reads` must be sorted ascending, and must not have adjacent or
* overlapping ranges. The result of checking reads[i] is written in
* results[i]. */
/** The result of checking reads[i] is written in results[i]. */
void check(const ReadRange *reads, Result *results, int count) const;
/** `writes` must be sorted ascending, and must not have adjacent or
* overlapping ranges. Reads intersecting writes where readVersion <
@@ -107,8 +105,7 @@ typedef struct {
int64_t writeVersion;
} ConflictSet_WriteRange;
/** `reads` must be sorted ascending, and must not have adjacent or overlapping
* ranges. The result of checking reads[i] is written in results[i]. */
/** The result of checking reads[i] is written in results[i]. */
void ConflictSet_check(ConflictSet *cs, const ConflictSet_ReadRange *reads,
ConflictSet_Result *results, int count);
/** `writes` must be sorted ascending, and must not have adjacent or overlapping