Content-Length: 272552 | pFad | http://github.com/postgrespro/postgres_cluster/commit/b986f30cc24b8720044e96ec3bff32486fb2c2d0

D2 Add transaction hash · postgrespro/postgres_cluster@b986f30 · GitHub
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)








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/b986f30cc24b8720044e96ec3bff32486fb2c2d0

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy