From 7a00d5a9a414b7e98e2cc3660fe0752ee6303157 Mon Sep 17 00:00:00 2001 From: Jaime Casanova Date: Sat, 21 Jul 2012 17:49:38 -0500 Subject: [PATCH] Now that we can have no monitoring we need to check all nodes at failover not only those in repl_monitor --- repmgrd.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/repmgrd.c b/repmgrd.c index aae9b169..8bc47d38 100644 --- a/repmgrd.c +++ b/repmgrd.c @@ -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)