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)
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