mirror of
https://github.com/EnterpriseDB/repmgr.git
synced 2026-03-22 22:56:29 +00:00
Minor coding style fixes
This commit is contained in:
@@ -1830,7 +1830,7 @@ can_execute_pg_promote(PGconn *conn)
|
||||
bool has_pg_promote= false;
|
||||
|
||||
/* pg_promote() available from PostgreSQL 12 */
|
||||
if(PQserverVersion(conn) < 120000)
|
||||
if (PQserverVersion(conn) < 120000)
|
||||
return false;
|
||||
|
||||
initPQExpBuffer(&query);
|
||||
@@ -1869,7 +1869,7 @@ connection_has_pg_settings(PGconn *conn)
|
||||
has_pg_settings = true;
|
||||
}
|
||||
/* from PostgreSQL 10, a non-superuser may have been granted access */
|
||||
else if(PQserverVersion(conn) >= 100000)
|
||||
else if (PQserverVersion(conn) >= 100000)
|
||||
{
|
||||
PQExpBufferData query;
|
||||
PGresult *res;
|
||||
@@ -5823,6 +5823,10 @@ is_downstream_node_attached(PGconn *conn, char *node_name, char **node_state)
|
||||
return NODE_DETACHED;
|
||||
}
|
||||
|
||||
/*
|
||||
* If the connec
|
||||
*/
|
||||
|
||||
state = PQgetvalue(res, 0, 1);
|
||||
|
||||
if (node_state != NULL)
|
||||
|
||||
Reference in New Issue
Block a user