Skip to content

Commit

Permalink
fix: reset mongodb role when it is unhealthy (#8639)
Browse files Browse the repository at this point in the history
  • Loading branch information
xuriwuyun authored Dec 13, 2024
1 parent b5981d1 commit de01ed7
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions pkg/lorry/operations/replica/checkrole.go
Original file line number Diff line number Diff line change
Expand Up @@ -169,9 +169,6 @@ func (s *CheckRole) Do(ctx context.Context, _ *operations.OpsRequest) (*operatio
// When network partition occurs, the new primary needs to send global role change information to the controller.
isLeader, err := manager.IsLeader(ctx, cluster)
if err != nil {
if err != models.ErrNotImplemented {
return nil, err
}
isLeader = models.IsLikelyPrimaryRole(role)
}

Expand Down

0 comments on commit de01ed7

Please sign in to comment.