From 65c2be344111c4e50ed66daf9d5f661bd3b32aaf Mon Sep 17 00:00:00 2001 From: Ian Barwick Date: Mon, 26 Sep 2016 10:44:18 +0900 Subject: [PATCH] Remove redundant code --- repmgr.c | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/repmgr.c b/repmgr.c index 4afe7053..49419916 100644 --- a/repmgr.c +++ b/repmgr.c @@ -1443,17 +1443,6 @@ do_standby_unregister(void) log_info(_("connecting to database\n")); conn = establish_db_connection(options.conninfo, true); - /* Check we are a standby */ -/* ret = is_standby(conn); - if (ret == 0 || ret == -1) - { - log_err(_(ret == 0 ? "this node should be a standby (%s)\n" : - "connection to node (%s) lost\n"), options.conninfo); - - PQfinish(conn); - exit(ERR_BAD_CONFIG); - }*/ - /* Check if there is a schema for this cluster */ if (check_cluster_schema(conn) == false) {