mirror of
https://github.com/EnterpriseDB/repmgr.git
synced 2026-03-24 23:56:29 +00:00
Add 'primary_response_timeout' as synonym for 'master_response_timeout'
We'll switch terminology in a future release and maintain 'master_response_timeout' for backwards compatibility
This commit is contained in:
5
config.c
5
config.c
@@ -237,6 +237,11 @@ parse_config(t_configuration_options *options)
|
|||||||
strncpy(options->follow_command, value, MAXLEN);
|
strncpy(options->follow_command, value, MAXLEN);
|
||||||
else if (strcmp(name, "master_response_timeout") == 0)
|
else if (strcmp(name, "master_response_timeout") == 0)
|
||||||
options->master_response_timeout = atoi(value);
|
options->master_response_timeout = atoi(value);
|
||||||
|
/* 'primary_response_timeout' as synonym for 'master_response_timeout' -
|
||||||
|
* we'll switch terminology in a future release
|
||||||
|
*/
|
||||||
|
else if (strcmp(name, "primary_response_timeout") == 0)
|
||||||
|
options->master_response_timeout = atoi(value);
|
||||||
else if (strcmp(name, "reconnect_attempts") == 0)
|
else if (strcmp(name, "reconnect_attempts") == 0)
|
||||||
options->reconnect_attempts = atoi(value);
|
options->reconnect_attempts = atoi(value);
|
||||||
else if (strcmp(name, "reconnect_interval") == 0)
|
else if (strcmp(name, "reconnect_interval") == 0)
|
||||||
|
|||||||
Reference in New Issue
Block a user