From: Pavan Deolasee Date: Mon, 9 May 2016 05:11:49 +0000 (+0530) Subject: Avoid protocol breakage when pooler fails to open connection to one or more X-Git-Tag: XL_10_R1BETA1~668 X-Git-Url: http://git.postgresql.org/gitweb/static/gitweb.js?a=commitdiff_plain;h=eebf6f3a2d221bb8165d3fca111e19421cbaf3c1;p=postgres-xl.git Avoid protocol breakage when pooler fails to open connection to one or more nodes. While the pooler sends both fds as well pids, the client was bailing out early if it can't find required number of fds, thus causing protocol breakdown Per report by Zhang Eamon --- diff --git a/src/backend/pgxc/pool/poolmgr.c b/src/backend/pgxc/pool/poolmgr.c index c73e1982ec..11c2774e59 100644 --- a/src/backend/pgxc/pool/poolmgr.c +++ b/src/backend/pgxc/pool/poolmgr.c @@ -960,7 +960,7 @@ PoolManagerGetConnections(List *datanodelist, List *coordlist, int **pids) if (pool_recvfds(&poolHandle->port, fds, totlen)) { pfree(fds); - return NULL; + fds = NULL; } if (pool_recvpids(&poolHandle->port, pids) != totlen)