From 205f1cebbbb198fbf00b7fb40f0728d385ec2de7 Mon Sep 17 00:00:00 2001 From: Ian Barwick Date: Mon, 28 Mar 2016 15:53:25 +0900 Subject: [PATCH] It's unlikely this situation will occur on a witness server Which is why the error message is for master/standby only. --- repmgrd.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/repmgrd.c b/repmgrd.c index 8600a660..16cf2a89 100644 --- a/repmgrd.c +++ b/repmgrd.c @@ -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"));