Skip to content

Commit

Permalink
Switchover failover in Master-Slave regression extra slaves do not fo…
Browse files Browse the repository at this point in the history
…llow the master #998
  • Loading branch information
svaroqui committed Jan 14, 2025
1 parent ccb0822 commit 53d04bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cluster/cluster_fail.go
Original file line number Diff line number Diff line change
Expand Up @@ -416,7 +416,7 @@ func (cluster *Cluster) SwitchSlavesToMaster(fail bool) {

// Don't switch if slave was the old master or is in a multiple master or loop setup or with relay server or in wsrep state .

if (!cluster.Conf.MultiMaster && !cluster.Conf.MultiMasterGrouprep) || sl.State == stateWsrep || sl.State == stateWsrepDonor || sl.State == stateWsrepLate || sl.URL == cluster.oldMaster.URL || sl.State == stateMaster || (sl.IsRelay == false && cluster.Conf.MxsBinlogOn == true) {
if cluster.Conf.MultiMaster || cluster.Conf.MultiMasterGrouprep || sl.State == stateWsrep || sl.State == stateWsrepDonor || sl.State == stateWsrepLate || sl.URL == cluster.oldMaster.URL || sl.State == stateMaster || (sl.IsRelay == false && cluster.Conf.MxsBinlogOn == true) {
continue
}
// maxscale is in the list of slave
Expand Down

0 comments on commit 53d04bb

Please sign in to comment.