mirror of
https://github.com/EnterpriseDB/repmgr.git
synced 2026-03-23 07:06:30 +00:00
Now that we can have no monitoring we need to check all nodes at failover
not only those in repl_monitor
This commit is contained in:
@@ -608,11 +608,10 @@ do_failover(void)
|
||||
/* get a list of standby nodes, including myself */
|
||||
sprintf(sqlquery, "SELECT id, conninfo "
|
||||
" FROM %s.repl_nodes "
|
||||
" WHERE id IN (SELECT standby_node FROM %s.repl_status) "
|
||||
" AND id <> %d "
|
||||
" WHERE id <> %d "
|
||||
" AND cluster = '%s' "
|
||||
" ORDER BY priority ",
|
||||
repmgr_schema, repmgr_schema, primary_options.node, local_options.cluster_name);
|
||||
repmgr_schema, primary_options.node, local_options.cluster_name);
|
||||
|
||||
res1 = PQexec(myLocalConn, sqlquery);
|
||||
if (PQresultStatus(res1) != PGRES_TUPLES_OK)
|
||||
|
||||
Reference in New Issue
Block a user