File tree 1 file changed +1
-1
lines changed
1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -416,7 +416,7 @@ func (cluster *Cluster) SwitchSlavesToMaster(fail bool) {
416
416
417
417
// 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 .
418
418
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 ) {
420
420
continue
421
421
}
422
422
// maxscale is in the list of slave
You can’t perform that action at this time.
0 commit comments