mirror of
https://github.com/EnterpriseDB/repmgr.git
synced 2026-03-25 08:06:29 +00:00
repmgrd: various fixed, mainly clearing status after a failover event
This commit is contained in:
9
config.c
9
config.c
@@ -268,9 +268,14 @@ _parse_config(t_configuration_options *options, ItemList *error_list, ItemList *
|
||||
options->event_notifications.tail = NULL;
|
||||
|
||||
/* barman settings */
|
||||
/* --------------- */
|
||||
memset(options->barman_server, 0, sizeof(options->barman_server));
|
||||
memset(options->barman_config, 0, sizeof(options->barman_config));
|
||||
|
||||
/* undocumented test settings */
|
||||
/* -------------------------- */
|
||||
options->promote_delay = 0;
|
||||
|
||||
/*
|
||||
* If no configuration file available (user didn't specify and none found
|
||||
* in the default locations), return with default values
|
||||
@@ -455,6 +460,10 @@ _parse_config(t_configuration_options *options, ItemList *error_list, ItemList *
|
||||
else if (strcmp(name, "barman_config") == 0)
|
||||
strncpy(options->barman_config, value, MAXLEN);
|
||||
|
||||
/* undocumented test settings */
|
||||
else if (strcmp(name, "promote_delay") == 0)
|
||||
options->promote_delay = repmgr_atoi(value, name, error_list, 1);
|
||||
|
||||
/* Following parameters have been deprecated or renamed from 3.x - issue a warning */
|
||||
else if (strcmp(name, "cluster") == 0)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user