Skip to content

Commit 5bd148a

Browse files
committed
Remove unused node_id parameters from dtm_begin_transaction
1 parent 41865ef commit 5bd148a

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

contrib/pg_tsdtm/pg_dtm.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -301,8 +301,7 @@ Datum
301301
dtm_begin_prepare(PG_FUNCTION_ARGS)
302302
{
303303
GlobalTransactionId gtid = PG_GETARG_CSTRING(0);
304-
nodeid_t coordinator = PG_GETARG_INT32(1);
305-
DtmLocalBeginPrepare(gtid, coordinator);
304+
DtmLocalBeginPrepare(gtid);
306305
DTM_TRACE((stderr, "Backend %d begins prepare of transaction %s\n", getpid(), gtid));
307306
PG_RETURN_VOID();
308307
}

contrib/pg_tsdtm/pg_dtm.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ cid_t DtmLocalExtend(DtmTransState* x, GlobalTransactionId gtid);
2323
/* Function called at first access to any datanode except first one involved in distributed transaction */
2424
cid_t DtmLocalAccess(DtmTransState* x, GlobalTransactionId gtid, cid_t snapshot);
2525
/* Mark transaction as in-doubt */
26-
void DtmLocalBeginPrepare(GlobalTransactionId gtid, nodeid_t coordinator);
26+
void DtmLocalBeginPrepare(GlobalTransactionId gtid);
2727
/* Choose CSN for global transaction */
2828
cid_t DtmLocalPrepare(GlobalTransactionId gtid, cid_t cid);
2929
/* Assign CSN to global transaction */

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