File tree 2 files changed +1
-2
lines changed
2 files changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -694,6 +694,7 @@ func (cluster *Cluster) Run() {
694
694
}
695
695
696
696
cluster .IsFailable = cluster .GetStatus ()
697
+ cluster .IsMasterDown = cluster .GetMaster () == nil || cluster .GetMaster ().IsFailed ()
697
698
// CheckFailed trigger failover code if passing all false positiv and constraints
698
699
cluster .CheckFailed ()
699
700
Original file line number Diff line number Diff line change @@ -516,7 +516,6 @@ func (cluster *Cluster) AllServersFailed() bool {
516
516
func (cluster * Cluster ) TopologyClusterDown () bool {
517
517
// search for all cluster down
518
518
if cluster .GetMaster () == nil || cluster .GetMaster ().State == stateFailed {
519
- cluster .IsMasterDown = true
520
519
allslavefailed := true
521
520
for _ , s := range cluster .slaves {
522
521
if s .State != stateFailed && s .State != stateErrorAuth && ! s .IsIgnored () {
@@ -544,7 +543,6 @@ func (cluster *Cluster) TopologyClusterDown() bool {
544
543
545
544
}
546
545
cluster .IsDown = false
547
- cluster .IsMasterDown = false
548
546
return false
549
547
}
550
548
You can’t perform that action at this time.
0 commit comments