Skip to content

Commit debaa09

Browse files
committed
Fix allocation of new transaction
1 parent 5b6d1c2 commit debaa09

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

contrib/pg_dtm/dtmd/src/main.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -282,9 +282,8 @@ static void onbegin(client_t client, int argc, xid_t *argv) {
282282
} else {
283283
free_transactions = t->elem.next;
284284
}
285-
l2_list_link(&active_transactions, &t->elem);
286-
287285
transaction_clear(t);
286+
l2_list_link(&active_transactions, &t->elem);
288287

289288
prev_gxid = t->xid = next_gxid++;
290289
t->snapshots_count = 0;

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