mirror of
https://github.com/EnterpriseDB/repmgr.git
synced 2026-03-27 17:06:29 +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;
|
bool config_ok;
|
||||||
int server_version_num;
|
int server_version_num;
|
||||||
|
|
||||||
/* sanity-check local node configuration file */
|
|
||||||
parse_config(&options);
|
|
||||||
|
|
||||||
/* We need to connect to check configuration and start a backup */
|
/* We need to connect to check configuration and start a backup */
|
||||||
log_info(_("connecting to upstream server\n"));
|
log_info(_("connecting to upstream server\n"));
|
||||||
|
|
||||||
conn = establish_db_connection_by_params((const char**)source_conninfo.keywords, (const char**)source_conninfo.values, true);
|
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 */
|
/* Verify that upstream server is a supported server version */
|
||||||
log_verbose(LOG_INFO, _("connected to upstream server, checking its state\n"));
|
log_verbose(LOG_INFO, _("connected to upstream server, checking its state\n"));
|
||||||
server_version_num = check_server_version(conn, "upstream server", false, NULL);
|
server_version_num = check_server_version(conn, "upstream server", false, NULL);
|
||||||
|
|||||||
Reference in New Issue
Block a user