Replace repmgr.conf item "upstream_node_id" with --upstream-node-id

This is only relevant when cloning a standby and the node's upstream
can change after failover/switchover etc., so no point keeping the
original value around in the configuration file.
This commit is contained in:
Ian Barwick
2017-06-26 09:00:31 +09:00
committed by Ian Barwick
parent 24c6b2c9f1
commit 4e06355b57
8 changed files with 30 additions and 30 deletions

View File

@@ -139,15 +139,6 @@ do_primary_register(void)
node_info.node_id = config_file_options.node_id;
}
/* if upstream_node_id set, warn that it will be ignored */
if (config_file_options.upstream_node_id != NO_UPSTREAM_NODE)
{
log_warning(_("primary node %i is configured with \"upstream_node_id\" set to %i"),
node_info.node_id,
config_file_options.upstream_node_id);
log_detail(_("the value set for \"upstream_node_id\" will be ignored"));
}
/* set type to "primary", active to "true" and unset upstream_node_id*/
node_info.type = PRIMARY;
node_info.upstream_node_id = NO_UPSTREAM_NODE;