Skip to content

Commit 7c7095c

Browse files
committed
Update autoprepare algorithm
1 parent 4596c34 commit 7c7095c

File tree

3 files changed

+463
-418
lines changed

3 files changed

+463
-418
lines changed

contrib/postgres_fdw/tests/dtmbench.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ void* writer(void* arg)
138138
{
139139
work txn(conn);
140140
int srcAcc = random() % cfg.nAccounts;
141-
int dstAcc = (cfg.local ? srcAcc + 1 : random()) % cfg.nAccounts;
141+
int dstAcc = (cfg.local ? srcAcc /*+ 1*/ : random()) % cfg.nAccounts;
142142

143143
try {
144144
if (random() % 100 < cfg.updatePercent) {

0 commit comments

Comments
 (0)