mirror of
https://github.com/EnterpriseDB/repmgr.git
synced 2026-03-22 22:56:29 +00:00
Fix alignment and syntax
This commit is contained in:
21
repmgr.c
21
repmgr.c
@@ -2799,9 +2799,12 @@ do_standby_follow(void)
|
||||
exit(ERR_BAD_CONFIG);
|
||||
|
||||
/* Finally, restart the service */
|
||||
if (*options.restart_command) {
|
||||
if (*options.restart_command)
|
||||
{
|
||||
maxlen_snprintf(script, "%s", options.restart_command);
|
||||
} else {
|
||||
}
|
||||
else
|
||||
{
|
||||
maxlen_snprintf(script, "%s %s -w -D %s -m fast restart",
|
||||
make_pg_path("pg_ctl"), options.pg_ctl_options, data_dir);
|
||||
}
|
||||
@@ -3282,9 +3285,12 @@ do_standby_switchover(void)
|
||||
* -> use -F/--force?
|
||||
*/
|
||||
|
||||
if (*options.stop_command) {
|
||||
if (*options.stop_command)
|
||||
{
|
||||
maxlen_snprintf(command, "%s", options.stop_command);
|
||||
} else {
|
||||
}
|
||||
else
|
||||
{
|
||||
maxlen_snprintf(command,
|
||||
"%s -D %s -m %s -W stop >/dev/null 2>&1 && echo 1 || echo 0",
|
||||
make_pg_path("pg_ctl"),
|
||||
@@ -4050,9 +4056,12 @@ do_witness_create(void)
|
||||
|
||||
|
||||
/* start new instance */
|
||||
if (*options.start_command) {
|
||||
if (*options.start_command)
|
||||
{
|
||||
maxlen_snprintf(script, "%s", options.start_command);
|
||||
} else {
|
||||
}
|
||||
else
|
||||
{
|
||||
maxlen_snprintf(script, "%s %s -w -D %s start",
|
||||
make_pg_path("pg_ctl"),
|
||||
options.pg_ctl_options, runtime_options.dest_dir);
|
||||
|
||||
Reference in New Issue
Block a user