From ec9bd772b08d5e6f8b7f4980eae4f6a7c91a4a3d Mon Sep 17 00:00:00 2001 From: Tim Vaillancourt Date: Wed, 18 Dec 2024 20:55:11 +0100 Subject: [PATCH] revert cond Signed-off-by: Tim Vaillancourt --- go/vt/vtorc/logic/topology_recovery.go | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/go/vt/vtorc/logic/topology_recovery.go b/go/vt/vtorc/logic/topology_recovery.go index 7f4c897ca5b..df377ef1419 100644 --- a/go/vt/vtorc/logic/topology_recovery.go +++ b/go/vt/vtorc/logic/topology_recovery.go @@ -306,13 +306,7 @@ func postErsCompletion(topologyRecovery *TopologyRecovery, analysisEntry *inst.R _ = AuditTopologyRecovery(topologyRecovery, message) _ = inst.AuditOperation(recoveryName, analysisEntry.AnalyzedInstanceAlias, message) _ = AuditTopologyRecovery(topologyRecovery, fmt.Sprintf("%v: successfully promoted %+v", recoveryName, promotedReplica.InstanceAlias)) - - // TODO: remove this conditional and 'else' side after vtops-vtorc is used 100%. - if strings.HasSuffix(vtopsPath, "vtops-vtorc") { - vtopsExec.RaiseProblem(analysisEntry, topologyRecovery.SuccessorAlias, "orc-dead-tablet") - } else { - vtopsExec.RaiseProblem(analysisEntry, topologyRecovery.SuccessorAlias, "orc-dead-tablet") - } + vtopsExec.RaiseProblem(analysisEntry, topologyRecovery.SuccessorAlias, "orc-dead-tablet") } }