mirror of
https://github.com/EnterpriseDB/repmgr.git
synced 2026-03-26 08:36:30 +00:00
"standby switchover": actually abort if SSH connection not possible
This commit is contained in:
4
repmgr.c
4
repmgr.c
@@ -4973,7 +4973,9 @@ do_standby_switchover(void)
|
|||||||
|
|
||||||
if (r != 0)
|
if (r != 0)
|
||||||
{
|
{
|
||||||
log_err(_("unable to connect via SSH to host %s, user %s\n"), remote_host, runtime_options.remote_user);
|
log_err(_("unable to connect via SSH to host \"%s\", user \"%s\"\n"),
|
||||||
|
remote_host, runtime_options.remote_user);
|
||||||
|
exit(ERR_BAD_CONFIG);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (get_pg_setting(remote_conn, "data_directory", remote_data_directory) == false)
|
if (get_pg_setting(remote_conn, "data_directory", remote_data_directory) == false)
|
||||||
|
|||||||
Reference in New Issue
Block a user