Interface change! addWrites now takes a single write version

This commit is contained in:
2024-03-05 16:55:27 -08:00
parent ec3aec4dff
commit be5f1b67c8
10 changed files with 71 additions and 95 deletions
+1 -2
View File
@@ -96,7 +96,6 @@ int main(int argc, const char **argv) {
// Add unconditionally so that the load doesn't actually depend on the
// conflict rate
ConflictSet::WriteRange w;
w.writeVersion = ++version;
w.begin.p = (const uint8_t *)write.data();
w.begin.len = write.size();
w.end.len = 0;
@@ -104,7 +103,7 @@ int main(int argc, const char **argv) {
addBytes += write.size();
timer = now();
cs.addWrites(&w, 1);
cs.addWrites(&w, 1, ++version);
addTime += now() - timer;
write = {};