Skip to content

Commit b986f30

Browse files
committed
Add transaction hash
1 parent 7e43c55 commit b986f30

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

contrib/pg_dtm/dtmd/src/main.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -288,13 +288,14 @@ static void onbegin(client_t client, int argc, xid_t *argv) {
288288
}
289289
transaction_clear(t);
290290
l2_list_link(&active_transactions, &t->elem);
291-
t->collision = transaction_hash[t->xid % MAX_TRANSACTIONS];
292-
transaction_hash[t->xid % MAX_TRANSACTIONS] = t;
293291

294292
prev_gxid = t->xid = next_gxid++;
295293
t->snapshots_count = 0;
296294
t->size = 1;
297295

296+
t->collision = transaction_hash[t->xid % MAX_TRANSACTIONS];
297+
transaction_hash[t->xid % MAX_TRANSACTIONS] = t;
298+
298299
CLIENT_SNAPSENT(client) = 0;
299300
CLIENT_XID(client) = t->xid;
300301

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