mirror of
https://github.com/EnterpriseDB/repmgr.git
synced 2026-03-27 08:56:29 +00:00
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.
This commit is contained in:
16
repmgr.c
16
repmgr.c
@@ -1023,12 +1023,16 @@ do_standby_promote(void)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* reconnect to check we got promoted */
|
/* reconnect to check we got promoted */
|
||||||
conn = establishDBConnection(conninfo, true);
|
/*
|
||||||
if (is_standby(conn))
|
* XXX i'm removing this because it gives an annoying message saying couldn't connect
|
||||||
fprintf(stderr, "\n%s: STANDBY PROMOTE failed, this is still a standby node.\n", progname);
|
* but is just the server starting up
|
||||||
else
|
* conn = establishDBConnection(conninfo, true);
|
||||||
fprintf(stderr, "\n%s: you should REINDEX any hash indexes you have.\n", progname);
|
* if (is_standby(conn))
|
||||||
PQfinish(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;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user