mirror of
https://github.com/EnterpriseDB/repmgr.git
synced 2026-03-26 08:36:30 +00:00
After switchover, enable sibling standbys to follow new primary
This commit is contained in:
@@ -52,7 +52,6 @@ do_node_status(void)
|
||||
return _do_node_status_is_shutdown();
|
||||
}
|
||||
|
||||
|
||||
if (strlen(config_file_options.conninfo))
|
||||
conn = establish_db_connection(config_file_options.conninfo, true);
|
||||
else
|
||||
@@ -979,7 +978,9 @@ do_node_rejoin(void)
|
||||
|
||||
|
||||
/* check provided upstream connection */
|
||||
upstream_conn = establish_db_connection(runtime_options.upstream_conninfo, true);
|
||||
upstream_conn = establish_db_connection_by_params(&source_conninfo, true);
|
||||
|
||||
/* establish_db_connection(runtime_options.upstream_conninfo, true); */
|
||||
|
||||
if (get_primary_node_record(upstream_conn, &primary_node_record) == false)
|
||||
{
|
||||
@@ -1030,7 +1031,7 @@ do_node_rejoin(void)
|
||||
appendPQExpBuffer(
|
||||
&command,
|
||||
" --source-server='%s'",
|
||||
runtime_options.upstream_conninfo);
|
||||
primary_node_record.conninfo);
|
||||
|
||||
log_notice(_("executing pg_rewind"));
|
||||
log_debug("pg_rewind command is:\n %s",
|
||||
|
||||
Reference in New Issue
Block a user