Skip to content

Commit 53d04bb

Browse files
committed
Switchover failover in Master-Slave regression extra slaves do not follow the master #998
1 parent ccb0822 commit 53d04bb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cluster/cluster_fail.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -416,7 +416,7 @@ func (cluster *Cluster) SwitchSlavesToMaster(fail bool) {
416416

417417
// 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 .
418418

419-
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) {
419+
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) {
420420
continue
421421
}
422422
// maxscale is in the list of slave

0 commit comments

Comments
 (0)