mirror of
https://github.com/EnterpriseDB/repmgr.git
synced 2026-03-27 17:06:29 +00:00
Check STANDBY PROMOTE actually promote the node
This commit is contained in:
6
repmgr.c
6
repmgr.c
@@ -1022,6 +1022,12 @@ do_standby_promote(void)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* reconnect to check we got promoted */
|
||||||
|
conn = establishDBConnection(conninfo, true);
|
||||||
|
if (is_standby(conn))
|
||||||
|
fprintf(stderr, "%s: STANDBY PROMOTE failed, this is still a standby node\n", progname);
|
||||||
|
PQfinish(conn);
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user