Skip to content

Commit

Permalink
updateMasterToNewOneForcefully
Browse files Browse the repository at this point in the history
  • Loading branch information
liuyuecai committed Jul 8, 2024
1 parent 12090e4 commit 8285283
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions codis/pkg/topom/topom_group.go
Original file line number Diff line number Diff line change
Expand Up @@ -391,8 +391,8 @@ func (s *Topom) tryFixReplicationRelationship(group *models.Group, groupServer *
return nil
}

// current server is slave, execute the command `slaveof [new master ip] [new master port]`
if err = updateMasterToNewOne(groupServer.Addr, curMasterAddr, s.config.ProductAuth); err != nil {
// current server is slave, execute the command `slaveof [new master ip] [new master port] force`
if err = updateMasterToNewOneForcefully(groupServer.Addr, curMasterAddr, s.config.ProductAuth); err != nil {
return err
}
}
Expand Down

0 comments on commit 8285283

Please sign in to comment.