Content-Length: 273141 | pFad | http://github.com/postgrespro/postgres_cluster/commit/ed4f3e360000d24f693f2aa1c507dd96c4c09da5

44 Fix bugs in dtmbench · postgrespro/postgres_cluster@ed4f3e3 · GitHub
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)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres_cluster/commit/ed4f3e360000d24f693f2aa1c507dd96c4c09da5

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy