From 58498389dcd4ac79e074654c1a979a1617733637 Mon Sep 17 00:00:00 2001 From: Jaime Casanova Date: Thu, 28 Oct 2010 18:47:56 -0500 Subject: [PATCH] Temporarily remove the check if promote actually works, because when the database is taking too long to recover and start it thinks the database is not online. --- repmgr.c | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/repmgr.c b/repmgr.c index b81cb528..23435ee1 100644 --- a/repmgr.c +++ b/repmgr.c @@ -1023,12 +1023,16 @@ do_standby_promote(void) } /* reconnect to check we got promoted */ - conn = establishDBConnection(conninfo, true); - if (is_standby(conn)) - fprintf(stderr, "\n%s: STANDBY PROMOTE failed, this is still a standby node.\n", progname); - else - fprintf(stderr, "\n%s: you should REINDEX any hash indexes you have.\n", progname); - PQfinish(conn); + /* + * XXX i'm removing this because it gives an annoying message saying couldn't connect + * but is just the server starting up +* conn = establishDBConnection(conninfo, true); +* if (is_standby(conn)) +* fprintf(stderr, "\n%s: STANDBY PROMOTE failed, this is still a standby node.\n", progname); +* else +* fprintf(stderr, "\n%s: you should REINDEX any hash indexes you have.\n", progname); +* PQfinish(conn); + */ return; }