mirror of
https://github.com/EnterpriseDB/repmgr.git
synced 2026-03-25 16:16:29 +00:00
repmgrd: restrict BDR monitoring to two node setup
It's not safe to have more than two nodes with this kind of "failover", so we don't need to select alternative nodes by priority.
This commit is contained in:
17
config.c
17
config.c
@@ -435,23 +435,6 @@ _parse_config(t_configuration_options *options, ItemList *error_list, ItemList *
|
||||
else if (strcmp(name, "event_notifications") == 0)
|
||||
parse_event_notifications_list(options, value);
|
||||
|
||||
/* bdr settings */
|
||||
else if (strcmp(name, "bdr_monitoring_mode") == 0)
|
||||
{
|
||||
if (strncmp(value, "local", MAXLEN) == 0)
|
||||
{
|
||||
options->bdr_monitoring_mode = BDR_MONITORING_LOCAL;
|
||||
}
|
||||
else if (strcmp(value, "highest_priority") == 0)
|
||||
{
|
||||
options->bdr_monitoring_mode = BDR_MONITORING_PRIORITY;
|
||||
}
|
||||
else
|
||||
{
|
||||
item_list_append(error_list, _("value for 'bdr_monitoring_mode' must be 'local' or 'highest_priority'\n"));
|
||||
}
|
||||
}
|
||||
|
||||
/* barman settings */
|
||||
else if (strcmp(name, "barman_host") == 0)
|
||||
strncpy(options->barman_host, value, MAXLEN);
|
||||
|
||||
Reference in New Issue
Block a user