mirror of
https://github.com/EnterpriseDB/repmgr.git
synced 2026-03-22 22:56:29 +00:00
do not exit in getMasterConnection()
This commit is contained in:
@@ -359,8 +359,7 @@ getMasterConnection(PGconn *standby_conn, char *schema, char *cluster,
|
||||
log_err(_("Can't get nodes info: %s\n"),
|
||||
PQerrorMessage(standby_conn));
|
||||
PQclear(res1);
|
||||
PQfinish(standby_conn);
|
||||
exit(ERR_DB_QUERY);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
for (i = 0; i < PQntuples(res1); i++)
|
||||
|
||||
5
repmgr.c
5
repmgr.c
@@ -1433,6 +1433,11 @@ do_standby_follow(void)
|
||||
|
||||
do
|
||||
{
|
||||
if (!is_pgup(conn, options.master_response_timeout))
|
||||
{
|
||||
conn = establishDBConnection(options.conninfo, true);
|
||||
}
|
||||
|
||||
master_conn = getMasterConnection(conn, repmgr_schema,
|
||||
options.cluster_name, &master_id,(char *) &master_conninfo);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user