mirror of
https://github.com/EnterpriseDB/repmgr.git
synced 2026-03-23 07:06:30 +00:00
Make parameters 'conninfo' and 'node_name' mandatory
There's no reason why they need to be absent; if absent they're likely to cause confusion.
This commit is contained in:
12
config.c
12
config.c
@@ -254,6 +254,18 @@ parse_config(const char *config_file, t_configuration_options *options)
|
||||
exit(ERR_BAD_CONFIG);
|
||||
}
|
||||
|
||||
if (*options->node_name == '\0')
|
||||
{
|
||||
log_err(_("Parameter 'node_name' was not found. Check the configuration file.\n"));
|
||||
exit(ERR_BAD_CONFIG);
|
||||
}
|
||||
|
||||
if (*options->conninfo == '\0')
|
||||
{
|
||||
log_err(_("Parameter 'conninfo' was not found. Check the configuration file.\n"));
|
||||
exit(ERR_BAD_CONFIG);
|
||||
}
|
||||
|
||||
/* The following checks are for value parameter values */
|
||||
if (options->master_response_timeout <= 0)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user