mirror of
https://github.com/EnterpriseDB/repmgr.git
synced 2026-03-23 07:06:30 +00:00
repmgr: pointless parsing the configuration here
This commit is contained in:
4
repmgr.c
4
repmgr.c
@@ -7833,15 +7833,11 @@ 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 */
|
||||
log_info(_("connecting to upstream server\n"));
|
||||
|
||||
conn = establish_db_connection_by_params((const char**)source_conninfo.keywords, (const char**)source_conninfo.values, true);
|
||||
|
||||
|
||||
/* Verify that upstream server is a supported server version */
|
||||
log_verbose(LOG_INFO, _("connected to upstream server, checking its state\n"));
|
||||
server_version_num = check_server_version(conn, "upstream server", false, NULL);
|
||||
|
||||
Reference in New Issue
Block a user