mirror of
https://github.com/EnterpriseDB/repmgr.git
synced 2026-03-23 07:06:30 +00:00
[Fix] if 'node' config parameter is set as a string, nothing complain and all nodes are set to id '0'.
This commit is contained in:
6
config.c
6
config.c
@@ -266,6 +266,12 @@ parse_config(const char *config_file, t_configuration_options *options)
|
||||
exit(ERR_BAD_CONFIG);
|
||||
}
|
||||
|
||||
if (options->node == 0)
|
||||
{
|
||||
log_err(_("'node' must be an integer > 0\n"));
|
||||
exit(ERR_BAD_CONFIG);
|
||||
}
|
||||
|
||||
if (*options->node_name == '\0')
|
||||
{
|
||||
log_err(_("required parameter 'node_name' was not found\n"));
|
||||
|
||||
Reference in New Issue
Block a user