From: Tomas Vondra Date: Mon, 21 Aug 2017 08:47:13 +0000 (+0200) Subject: Make sure coordinator_lxid is formatted as %u and not %d X-Git-Tag: XL_10_R1BETA1~169 X-Git-Url: http://waps.l3s.uni-hannover.de/gitweb/?a=commitdiff_plain;h=61091c76ce7cf3bff2fc12fe658cf5fdc2f26cfb;p=postgres-xl.git 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. --- 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 */