summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTomas Vondra2017-08-21 08:47:13 +0000
committerTomas Vondra2017-08-21 09:03:17 +0000
commit61091c76ce7cf3bff2fc12fe658cf5fdc2f26cfb (patch)
tree8c9a083461eb91ed693eb2b20579db2ef3d5423e
parent87c16c45082b7b25fd2a4d33b98ee461eee6f936 (diff)
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.
-rw-r--r--src/backend/pgxc/pool/execRemote.c2
1 files changed, 1 insertions, 1 deletions
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 */