Skip to content

Commit ed4f3e3

Browse files
committed
Fix bugs in dtmbench
1 parent f17aa84 commit ed4f3e3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/dtmbench.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ void initializeDatabase()
196196
exec(txn, "create extension pg_dtm");
197197
exec(txn, "drop table if exists t");
198198
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);
199+
exec(txn, "insert into t (select generate_series(0,%d), %d)", cfg.nAccounts-1, 0);
200200
txn.commit();
201201
}
202202
}
@@ -264,7 +264,7 @@ int main (int argc, char* argv[])
264264

265265
for (int i = 0; i < cfg.nReaders; i++) {
266266
readers[i].wait();
267-
nReads += writers[i].proceeded;
267+
nReads += readers[i].proceeded;
268268
}
269269

270270
time_t elapsed = getCurrentTime() - start;

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy