Fix parsing of "archive_ready_critical" configuration file parameter.

Per report in GitHub #426.
This commit is contained in:
Ian Barwick
2018-04-28 06:59:20 +09:00
parent 16048a879e
commit 635bdccb2c

View File

@@ -530,7 +530,7 @@ _parse_config(t_configuration_options *options, ItemList *error_list, ItemList *
/* node check settings */
else if (strcmp(name, "archive_ready_warning") == 0)
options->archive_ready_warning = repmgr_atoi(value, name, error_list, 1);
else if (strcmp(name, "archive_ready_critcial") == 0)
else if (strcmp(name, "archive_ready_critical") == 0)
options->archive_ready_critical = repmgr_atoi(value, name, error_list, 1);
else if (strcmp(name, "replication_lag_warning") == 0)
options->replication_lag_warning = repmgr_atoi(value, name, error_list, 1);