We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parentf17aa84 commited4f3e3Copy full SHA for ed4f3e3
tests/dtmbench.cpp
@@ -196,7 +196,7 @@ void initializeDatabase()
196
exec(txn,"create extension pg_dtm");
197
exec(txn,"drop table if exists t");
198
exec(txn,"create table t(u int primary key, v int)");
199
-exec(txn,"insert into t (select generate_series(0,%d), %d)", cfg.nAccounts,0);
+exec(txn,"insert into t (select generate_series(0,%d), %d)", cfg.nAccounts-1,0);
200
txn.commit();
201
}
202
@@ -264,7 +264,7 @@ int main (int argc, char* argv[])
264
265
for (int i =0; i < cfg.nReaders; i++) {
266
readers[i].wait();
267
- nReads +=writers[i].proceeded;
+ nReads +=readers[i].proceeded;
268
269
270
time_t elapsed =getCurrentTime() - start;