You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: tests/dtmacid.cpp
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -130,8 +130,8 @@ void* reader(void* arg)
130
130
while ((c2 = random() % conns.size()) == c1);
131
131
work txn1(*conns[c1]);
132
132
work txn2(*conns[c2]);
133
-
result r1 = txn1.exec("select v from t order by u");
134
-
result r2 = txn2.exec("select v from t order by u");
133
+
result r1 = txn1.exec("select v,xmin,xmax,mtm.get_csn(xmin) from t order by u");
134
+
result r2 = txn2.exec("select v,xmin,xmax,mtm.get_csn(xmin) from t order by u");
135
135
int delta = 0;
136
136
for (int i=0; i < cfg.nAccounts; i++) {
137
137
int diff = r1[i][0].as(int()) - r2[i][0].as(int());
@@ -140,7 +140,7 @@ void* reader(void* arg)
140
140
delta = diff;
141
141
if (delta < 0) lt++; else gt++;
142
142
} elseif (delta != diff) {
143
-
printf("Inconsistency found for record %d\n", i);
143
+
printf("Inconsistency found for record %d: [%d,%d]->%ld vs [%d,%d]->%ld\n", i, r1[i][1].as(int()), r1[i][2].as(int()), r1[i][3].as(int64_t()), r2[i][1].as(int()), r2[i][2].as(int()), r2[i][3].as(int64_t()));
0 commit comments