diff --git a/repmgr-action-standby.c b/repmgr-action-standby.c index b7068e38..82a1a56e 100644 --- a/repmgr-action-standby.c +++ b/repmgr-action-standby.c @@ -2620,7 +2620,6 @@ do_standby_switchover(void) PGconn *remote_conn = NULL; t_node_info local_node_record = T_NODE_INFO_INITIALIZER; - int server_version_num = UNKNOWN_SERVER_VERSION_NUM; /* the remote server is the primary to be demoted */ char remote_conninfo[MAXCONNINFO] = ""; @@ -2686,8 +2685,6 @@ do_standby_switchover(void) exit(ERR_BAD_CONFIG); } - server_version_num = get_server_version(local_conn, NULL); - if (runtime_options.dry_run == true) { log_notice(_("checking switchover on node \"%s\" (ID: %i) in --dry-run mode"),