mirror of
https://github.com/EnterpriseDB/repmgr.git
synced 2026-03-22 22:56:29 +00:00
repmgrd: minor fixes and comment updates
This commit is contained in:
@@ -1506,6 +1506,10 @@ _do_standby_promote_internal(PGconn *conn, const char *data_dir)
|
|||||||
*
|
*
|
||||||
* Node must be running. To start an inactive node and point it at a
|
* Node must be running. To start an inactive node and point it at a
|
||||||
* new primary, use "repmgr node rejoin".
|
* new primary, use "repmgr node rejoin".
|
||||||
|
*
|
||||||
|
* TODO: enable provision of new primary's conninfo parameters, which
|
||||||
|
* will be necessary if the primary's information has changed, but
|
||||||
|
* was not replicated to the current standby.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|||||||
@@ -222,7 +222,7 @@ monitor_streaming_primary(void)
|
|||||||
if (is_server_available(local_node_info.conninfo) == false)
|
if (is_server_available(local_node_info.conninfo) == false)
|
||||||
{
|
{
|
||||||
|
|
||||||
/* node is down, we were expecting it to be up */
|
/* local node is down, we were expecting it to be up */
|
||||||
if (local_node_info.node_status == NODE_STATUS_UP)
|
if (local_node_info.node_status == NODE_STATUS_UP)
|
||||||
{
|
{
|
||||||
PQExpBufferData event_details;
|
PQExpBufferData event_details;
|
||||||
@@ -617,11 +617,10 @@ monitor_streaming_standby(void)
|
|||||||
failover_done = do_upstream_standby_failover();
|
failover_done = do_upstream_standby_failover();
|
||||||
}
|
}
|
||||||
|
|
||||||
// it's possible it will make sense to return in
|
/* XXX it's possible it will make sense to return in all cases to restart monitoring */
|
||||||
// all cases to restart monitoring
|
|
||||||
if (failover_done == true)
|
if (failover_done == true)
|
||||||
{
|
{
|
||||||
primary_node_id = get_primary_node_id(primary_conn);
|
primary_node_id = get_primary_node_id(local_conn);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user