It's unlikely this situation will occur on a witness server

Which is why the error message is for master/standby only.
This commit is contained in:
Ian Barwick
2016-03-28 15:53:25 +09:00
parent b55519c4a2
commit c828598bfb

View File

@@ -274,7 +274,14 @@ main(int argc, char **argv)
/* Retrieve record for this node from the local database */
node_info = get_node_info(my_local_conn, local_options.cluster_name, local_options.node);
/* No node record found - exit gracefully */
/*
* No node record found - exit gracefully
*
* Note: it's highly unlikely this situation will occur when starting
* repmgrd on a witness, unless someone goes to the trouble of
* deleting the node record from the previously copied table.
*/
if (node_info.node_id == NODE_NOT_FOUND)
{
log_err(_("No metadata record found for this node - terminating\n"));