From b6c9947b311eaea80a434b12d6d2f66778414584 Mon Sep 17 00:00:00 2001 From: Fizic Date: Tue, 19 Mar 2024 13:53:07 +0300 Subject: [PATCH] fix: issues --- internal/app/app.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 }