Skip to content

Commit

Permalink
fix: error in the log when no pd member fails (#4608)
Browse files Browse the repository at this point in the history
  • Loading branch information
hoyhbx authored Aug 2, 2022
1 parent af0fda7 commit c59fdf4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/manager/member/pd_member_manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ func (m *pdMemberManager) syncPDStatefulSetForTidbCluster(tc *v1alpha1.TidbClust
if m.deps.CLIConfig.AutoFailover {
if m.shouldRecover(tc) {
m.failover.Recover(tc)
} else if tc.PDAllPodsStarted() && !tc.PDAllMembersReady() || tc.PDAutoFailovering() {
} else if tc.Spec.PD.MaxFailoverCount != nil && *tc.Spec.PD.MaxFailoverCount > 0 && (tc.PDAllPodsStarted() && !tc.PDAllMembersReady() || tc.PDAutoFailovering()) {
if err := m.failover.Failover(tc); err != nil {
return err
}
Expand Down

0 comments on commit c59fdf4

Please sign in to comment.