mirror of
https://github.com/EnterpriseDB/repmgr.git
synced 2026-03-22 22:56:29 +00:00
node rejoin: emit rejoin target note information as NOTICE
As it's possible to specify the connection information for any available node, but currently not possible to rejoin to a node other than the primary, explicitly mention what the rejoin target will be.
This commit is contained in:
@@ -2612,6 +2612,13 @@ do_node_rejoin(void)
|
||||
exit(ERR_BAD_CONFIG);
|
||||
}
|
||||
|
||||
/*
|
||||
* Emit a notice about the identity of the rejoin target
|
||||
*/
|
||||
log_notice(_("rejoin target is node \"%s\" (ID: %i)"),
|
||||
primary_node_record.node_name,
|
||||
primary_node_record.node_id);
|
||||
|
||||
/* connect to registered primary and check it's not in recovery */
|
||||
primary_conn = establish_db_connection(primary_node_record.conninfo, false);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user