8000 Revisit gid format again to fix shardman's deadlock detector. · postgrespro/postgres_cluster@28efdaa · GitHub
[go: up one dir, main page]

Skip to content

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 28efdaa

Browse files
committed
Revisit gid format again to fix shardman's deadlock detector.
1 parent 9df61e3 commit 28efdaa

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

contrib/postgres_fdw/connection.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -818,13 +818,13 @@ pgfdw_xact_callback(XactEvent event, void *arg)
818818
bool res;
819819
char *sql;
820820

821-
fdwTransState->gid = psprintf("fdw:%lld:%llx:%u:%d:%d:%d",
821+
fdwTransState->gid = psprintf("pgfdw:%lld:%llu:%d:%u:%d:%d",
822822
(long long) GetCurrentTimestamp(),
823823
(long long) GetSystemIdentifier(),
824-
GetCurrentTransactionIdIfAny(),
825-
fdwTransState->nparticipants,
826824
MyProcPid,
827-
++two_phase_xact_count);
825+
GetCurrentTransactionIdIfAny(),
826+
++two_phase_xact_count,
827+
fdwTransState->nparticipants);
828828

829829
/* Broadcast PREPARE */
830830
sql = psprintf("PREPARE TRANSACTION '%s'", fdwTransState->gid);

0 commit comments

Comments
 (0)
0