Content-Length: 278433 | pFad | http://github.com/postgrespro/postgres_cluster/commit/b9b69d8c7623b9c1f29ce366aa6c554b170367f6
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e52fdbb commit b9b69d8Copy full SHA for b9b69d8
contrib/pg_dtm/tests/dtmbench.cpp
@@ -117,7 +117,7 @@ void* reader(void* arg)
117
}
118
int64_t prevSum = 0;
119
120
- while (running) {
+ while (running && (cfg.nWriters != 0 || t.proceeded < (size_t)cfg.nIterations)) {
121
try {
122
xid_t xid = 0;
123
for (size_t i = 0; i < conns.size(); i++) {
@@ -307,8 +307,10 @@ int main (int argc, char* argv[])
307
nWrites += writers[i].proceeded;
308
nAborts += writers[i].aborts;
309
310
-
311
- running = false;
+
+ if (cfg.nWriters != 0) {
312
+ running = false;
313
+ }
314
315
for (int i = 0; i < cfg.nReaders; i++) {
316
readers[i].wait();
Fetched URL: http://github.com/postgrespro/postgres_cluster/commit/b9b69d8c7623b9c1f29ce366aa6c554b170367f6
Alternative Proxies:
Alternative Proxy
pFad Proxy
pFad v3 Proxy
pFad v4 Proxy
0 commit comments