Remove redundant code

This commit is contained in:
Ian Barwick
2016-09-26 10:44:18 +09:00
parent b17593ff4d
commit 65c2be3441

View File

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