mirror of
https://github.com/EnterpriseDB/repmgr.git
synced 2026-03-27 17:06:29 +00:00
Clean up indentation, trailing whitespace
This commit is contained in:
14
repmgr.c
14
repmgr.c
@@ -904,26 +904,26 @@ do_standby_clone(void)
|
||||
{
|
||||
if (i == 0)
|
||||
{
|
||||
/* We could be using PG 9.4 with log_level logical, which is good enough for
|
||||
/* We could be using PG 9.4 with log_level logical, which is good enough for
|
||||
hot standby replication.
|
||||
We should check if the wal_level is set to that value, in which case we are
|
||||
good to proceed.
|
||||
No need to check if we are in 9.4 first, as the query used in guc_set will just
|
||||
return zero rows if on < 9.4, and so will work anyway.
|
||||
*/
|
||||
j = guc_set(conn, "wal_level", "=", "logical");
|
||||
if (j == 0 || j == -1)
|
||||
j = guc_set(conn, "wal_level", "=", "logical");
|
||||
if (j == 0 || j == -1)
|
||||
{
|
||||
PQfinish(conn);
|
||||
PQfinish(conn);
|
||||
if (j == 0)
|
||||
log_err(_("%s needs parameter 'wal_level' to be set to at least 'hot_standby'\n"),
|
||||
progname);
|
||||
log_err(_("%s needs parameter 'wal_level' to be set to at least 'hot_standby'\n"),
|
||||
progname);
|
||||
exit(ERR_BAD_CONFIG);
|
||||
}
|
||||
}
|
||||
else if (i == -1)
|
||||
{
|
||||
PQfinish(conn);
|
||||
PQfinish(conn);
|
||||
exit(ERR_BAD_CONFIG);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user