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 8, 2024
1 parent 9d3aefd commit 9d19afc
Show file tree
Hide file tree
Showing 4 changed files with 320 additions and 169 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 9d19afc

Please sign in to comment.