mirror of
https://github.com/EnterpriseDB/repmgr.git
synced 2026-03-24 23:56:29 +00:00
@@ -1814,7 +1814,7 @@ do_node_rejoin(void)
|
||||
* Forcibly rewind node if requested (this is mainly for use when this
|
||||
* action is being executed by "repmgr standby switchover")
|
||||
*/
|
||||
if (runtime_options.force_rewind == true)
|
||||
if (runtime_options.force_rewind == true && runtime_options.dry_run == false)
|
||||
{
|
||||
int ret;
|
||||
PQExpBufferData filebuf;
|
||||
@@ -1949,6 +1949,12 @@ do_node_rejoin(void)
|
||||
}
|
||||
}
|
||||
|
||||
if (runtime_options.dry_run == true)
|
||||
{
|
||||
log_info(_("prerequisites for executing NODE REJOIN are met"));
|
||||
exit(SUCCESS);
|
||||
}
|
||||
|
||||
initPQExpBuffer(&follow_output);
|
||||
|
||||
success = do_standby_follow_internal(upstream_conn,
|
||||
|
||||
Reference in New Issue
Block a user