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:
Ian Barwick
2021-01-06 14:10:23 +09:00
parent da3eaee127
commit cfbeed50d6
2 changed files with 9 additions and 0 deletions

View File

@@ -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);