Refactor reload_config()

Remove any non-repmgrd specific items.

parse_config() already sanity-checks the values so no need to
recheck. Refactor parse_config() so when called by reload_config()
it won't exit if errors are encountered.
This commit is contained in:
Ian Barwick
2016-11-01 19:05:21 +09:00
parent bb842c3989
commit fce1f0cd4a
5 changed files with 81 additions and 141 deletions

View File

@@ -7833,6 +7833,7 @@ do_check_upstream_config(void)
bool config_ok;
int server_version_num;
/* sanity-check local node configuration file */
parse_config(&options);
/* We need to connect to check configuration and start a backup */