Fix minimum accepted value for "degraded_monitoring_timeout"

Should be -1, the default.

Addresses GitHub #411.
This commit is contained in:
Ian Barwick
2018-03-29 21:15:03 +09:00
parent 3e1f0ec168
commit 293d66bf71

View File

@@ -564,7 +564,7 @@ _parse_config(t_configuration_options *options, ItemList *error_list, ItemList *
else if (strcmp(name, "monitoring_history") == 0)
options->monitoring_history = parse_bool(value, name, error_list);
else if (strcmp(name, "degraded_monitoring_timeout") == 0)
options->degraded_monitoring_timeout = repmgr_atoi(value, name, error_list, 1);
options->degraded_monitoring_timeout = repmgr_atoi(value, name, error_list, -1);
else if (strcmp(name, "async_query_timeout") == 0)
options->async_query_timeout = repmgr_atoi(value, name, error_list, 0);
else if (strcmp(name, "primary_notification_timeout") == 0)