mirror of
https://github.com/EnterpriseDB/repmgr.git
synced 2026-03-25 08:06:29 +00:00
Refactor "standby follow" functionality
"standby follow" was originally co-opted to start up a demoted node; this functionality is now delegated to "node rejoin", with the core functionality of "standby follow" implemented as an internal function.
This commit is contained in:
@@ -1189,6 +1189,14 @@ check_cli_parameters(const int action)
|
||||
}
|
||||
break;
|
||||
|
||||
case NODE_REJOIN:
|
||||
if (runtime_options.upstream_conninfo[0] == '\0')
|
||||
{
|
||||
item_list_append(
|
||||
&cli_errors,
|
||||
"--upstream-conninfo must be provided with NODE REJOIN");
|
||||
}
|
||||
break;
|
||||
case CLUSTER_SHOW:
|
||||
case CLUSTER_MATRIX:
|
||||
case CLUSTER_CROSSCHECK:
|
||||
@@ -1416,6 +1424,7 @@ check_cli_parameters(const int action)
|
||||
switch (action)
|
||||
{
|
||||
case STANDBY_SWITCHOVER:
|
||||
case NODE_REJOIN:
|
||||
break;
|
||||
default:
|
||||
item_list_append_format(
|
||||
|
||||
Reference in New Issue
Block a user