Skip to content

Commit

Permalink
fix panic
Browse files Browse the repository at this point in the history
Signed-off-by: liubo02 <[email protected]>
  • Loading branch information
liubog2008 committed Jan 10, 2025
1 parent 9993618 commit db2a008
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions pkg/controllers/tiflash/tasks/status.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ func TaskStatus(state *ReconcileContext, c client.Client) task.Task {
if pod != nil &&
statefulset.IsPodRunningAndReady(pod) &&
!state.PodIsTerminating &&
state.Store != nil &&
state.Store.NodeState == v1alpha1.StoreStateServing {
healthy = true
}
Expand Down
1 change: 1 addition & 0 deletions pkg/controllers/tikv/tasks/status.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ func TaskStatus(state *ReconcileContext, c client.Client) task.Task {
if pod != nil &&
statefulset.IsPodRunningAndReady(pod) &&
!state.PodIsTerminating &&
state.Store != nil &&
state.Store.NodeState == v1alpha1.StoreStateServing {
healthy = true
}
Expand Down

0 comments on commit db2a008

Please sign in to comment.