Clean up indentation, trailing whitespace

This commit is contained in:
Ian Barwick
2015-04-16 08:47:05 +09:00
parent 341831ad69
commit 20db2f52b1

View File

@@ -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);
}
}