From 61091c76ce7cf3bff2fc12fe658cf5fdc2f26cfb Mon Sep 17 00:00:00 2001 From: Tomas Vondra Date: Mon, 21 Aug 2017 10:47:13 +0200 Subject: Make sure coordinator_lxid is formatted as %u and not %d As the coordinator_lxid is uin32, so make sure we use %u to format it (e.g. when sending it to remote nodes as string) and not just %d. --- src/backend/pgxc/pool/execRemote.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/backend/pgxc/pool/execRemote.c b/src/backend/pgxc/pool/execRemote.c index 7ce5549521..14067ee0af 100644 --- a/src/backend/pgxc/pool/execRemote.c +++ b/src/backend/pgxc/pool/execRemote.c @@ -1943,7 +1943,7 @@ pgxc_node_begin(int conn_count, PGXCNodeHandle **connections, return EOF; /* Send virtualXID to the remote nodes using SET command */ - sprintf(lxid, "%d", MyProc->lxid); + sprintf(lxid, "%u", MyProc->lxid); PGXCNodeSetParam(true, "coordinator_lxid", lxid, 0); /* after transactions are started send down local set commands */ -- cgit v1.2.3