Skip to content

Commit

Permalink
spider support primary tdbctl's fail-over
Browse files Browse the repository at this point in the history
  • Loading branch information
xjxia committed Nov 11, 2024
1 parent 9d3aefd commit 3bf4ed1
Show file tree
Hide file tree
Showing 4 changed files with 351 additions and 175 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ func (ins *MySQLSwitch) DoSwitch() error {
ins.ReportLogs(constvar.InfoResult, "all proxy flush backends to 1.1.1.1 success")

ins.ReportLogs(constvar.InfoResult, "try to reset slave")
binlogFile, binlogPosition, err := ins.ResetSlave()
binlogFile, binlogPosition, err := ins.ResetSlaveExtend(ins.StandBySlave.Ip, ins.StandBySlave.Port)
if err != nil {
ins.ReportLogs(constvar.FailResult, fmt.Sprintf("reset slave failed:%s", err.Error()))
return fmt.Errorf("reset slave failed")
Expand Down
Loading

0 comments on commit 3bf4ed1

Please sign in to comment.