Update InternalVersionT::zero in addWrite call

There can be other conflict sets in the same thread
This commit is contained in:
2024-07-22 16:14:25 -07:00
parent 2b1c710953
commit fb9f5ce6f4
2 changed files with 19 additions and 0 deletions
+5
View File
@@ -3177,6 +3177,11 @@ struct __attribute__((visibility("hidden"))) ConflictSet::Impl {
}
void addWrites(const WriteRange *writes, int count, int64_t writeVersion) {
// There could be other conflict sets in the same thread. We need
// InternalVersionT::zero to be correct for this conflict set for the
// lifetime of the current call frame.
InternalVersionT::zero = oldestVersion;
assert(writeVersion >= newestVersionFullPrecision);
if (writeVersion > newestVersionFullPrecision + kNominalVersionWindow) {