mirror of
https://github.com/postgres/postgres.git
synced 2025-07-02 09:02:37 +03:00
Re-run pgindent.
This is just to have a clean base state for testing of Piotr Stefaniak's latest version of FreeBSD indent. I fixed up a couple of places where pgindent would have changed format not-nicely. perltidy not included. Discussion: https://postgr.es/m/VI1PR03MB119959F4B65F000CA7CD9F6BF2CC0@VI1PR03MB1199.eurprd03.prod.outlook.com
This commit is contained in:
@ -1842,16 +1842,23 @@ connectDBComplete(PGconn *conn)
|
||||
return 0;
|
||||
}
|
||||
|
||||
if (ret == 1) /* connect_timeout elapsed */
|
||||
if (ret == 1) /* connect_timeout elapsed */
|
||||
{
|
||||
/* If there are no more hosts, return (the error message is already set) */
|
||||
/*
|
||||
* If there are no more hosts, return (the error message is
|
||||
* already set)
|
||||
*/
|
||||
if (++conn->whichhost >= conn->nconnhost)
|
||||
{
|
||||
conn->whichhost = 0;
|
||||
conn->status = CONNECTION_BAD;
|
||||
return 0;
|
||||
}
|
||||
/* Attempt connection to the next host, starting the connect_timeout timer */
|
||||
|
||||
/*
|
||||
* Attempt connection to the next host, starting the
|
||||
* connect_timeout timer
|
||||
*/
|
||||
pqDropConnection(conn, true);
|
||||
conn->addr_cur = conn->connhost[conn->whichhost].addrlist;
|
||||
conn->status = CONNECTION_NEEDED;
|
||||
|
Reference in New Issue
Block a user