diff --git a/internal/app/app.go b/internal/app/app.go index 767cc21a..16462cd2 100644 --- a/internal/app/app.go +++ b/internal/app/app.go @@ -875,7 +875,7 @@ func (app *App) calcActiveNodes(clusterState, clusterStateDcs map[string]*NodeSt continue } sgtids := gtids.ParseGtidSet(sstatus.ExecutedGtidSet) - if !(sstatus.ReplicationState == mysql.ReplicationRunning && isSplitBrained(sgtids, mgtids, muuid)) { + if sstatus.ReplicationState != mysql.ReplicationRunning || isSplitBrained(sgtids, mgtids, muuid) { app.logger.Errorf("calc active nodes: %s is not replicating or splitbrained, deleting from active...", host) continue }