cast connection to (PGconn*) in grow_pool() to fix compiler warning
authorTomas Vondra <[email protected]>
Tue, 23 Aug 2016 13:47:22 +0000 (15:47 +0200)
committerPavan Deolasee <[email protected]>
Fri, 26 Aug 2016 11:14:32 +0000 (16:44 +0530)
src/backend/pgxc/pool/poolmgr.c

index 6293e31ee4c9b0bd3aeb074d74a8c643493ebd71..47d28a4c73d9bd285a87da9f3d027dceb1b39951 100644 (file)
@@ -2387,7 +2387,7 @@ grow_pool(DatabasePool *dbPool, Oid node)
                                         errmsg("failed to connect to node, connection string (%s),"
                                                  " connection error (%s)",
                                                  nodePool->connstr,
-                                                 PQerrorMessage(slot->conn))));
+                                                 PQerrorMessage((PGconn*) slot->conn))));
                        destroy_slot(slot);
                        /*
                         * If we failed to connect probably number of connections on the