mirror of
https://github.com/postgres/postgres.git
synced 2025-09-02 04:21:28 +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:
@@ -419,7 +419,7 @@ pg_SSPI_startup(PGconn *conn, int use_negotiate, int payloadlen)
|
||||
if (conn->sspictx)
|
||||
{
|
||||
printfPQExpBuffer(&conn->errorMessage,
|
||||
libpq_gettext("duplicate SSPI authentication request\n"));
|
||||
libpq_gettext("duplicate SSPI authentication request\n"));
|
||||
return STATUS_ERROR;
|
||||
}
|
||||
|
||||
@@ -1218,7 +1218,7 @@ PQencryptPasswordConn(PGconn *conn, const char *passwd, const char *user,
|
||||
else
|
||||
{
|
||||
printfPQExpBuffer(&conn->errorMessage,
|
||||
libpq_gettext("unrecognized password encryption algorithm \"%s\"\n"),
|
||||
libpq_gettext("unrecognized password encryption algorithm \"%s\"\n"),
|
||||
algorithm);
|
||||
return NULL;
|
||||
}
|
||||
|
@@ -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