mirror of
https://github.com/EnterpriseDB/repmgr.git
synced 2026-03-26 08:36:30 +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"),
|
log_err(_("Can't get nodes info: %s\n"),
|
||||||
PQerrorMessage(standby_conn));
|
PQerrorMessage(standby_conn));
|
||||||
PQclear(res1);
|
PQclear(res1);
|
||||||
PQfinish(standby_conn);
|
return NULL;
|
||||||
exit(ERR_DB_QUERY);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
for (i = 0; i < PQntuples(res1); i++)
|
for (i = 0; i < PQntuples(res1); i++)
|
||||||
|
|||||||
5
repmgr.c
5
repmgr.c
@@ -1433,6 +1433,11 @@ do_standby_follow(void)
|
|||||||
|
|
||||||
do
|
do
|
||||||
{
|
{
|
||||||
|
if (!is_pgup(conn, options.master_response_timeout))
|
||||||
|
{
|
||||||
|
conn = establishDBConnection(options.conninfo, true);
|
||||||
|
}
|
||||||
|
|
||||||
master_conn = getMasterConnection(conn, repmgr_schema,
|
master_conn = getMasterConnection(conn, repmgr_schema,
|
||||||
options.cluster_name, &master_id,(char *) &master_conninfo);
|
options.cluster_name, &master_id,(char *) &master_conninfo);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user