Skip to content

Commit

Permalink
Fixing failover election
Browse files Browse the repository at this point in the history
  • Loading branch information
svaroqui committed Feb 14, 2018
1 parent 61ffee8 commit 630d2b5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cluster/failover.go
Original file line number Diff line number Diff line change
Expand Up @@ -795,10 +795,10 @@ func (cluster *Cluster) electFailoverCandidate(l []*ServerMonitor, forcingLog bo
// not a slave
if errss != nil && cluster.conf.FailRestartUnsafe == false {
cluster.sme.AddState("ERR00033", state.State{ErrType: "WARNING", ErrDesc: fmt.Sprintf(clusterError["ERR00033"], sl.URL), ErrFrom: "CHECK"})
trackposList[i].Ignoredreplication = false
trackposList[i].Ignoredreplication = true
continue
}
trackposList[i].Ignoredreplication = cluster.isSlaveElectable(sl, false)
trackposList[i].Ignoredreplication = !cluster.isSlaveElectable(sl, false)
// Fake position if none as new slave
filepos := "1"
logfile := "master.000001"
Expand Down

0 comments on commit 630d2b5

Please sign in to comment.