Skip to content

Commit

Permalink
mysqlcluster: fix the error for pod's label no change radondb#534 (ra…
Browse files Browse the repository at this point in the history
  • Loading branch information
acekingke authored Jun 16, 2022
1 parent 7ff0f52 commit 671d56e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mysqlcluster/syncer/status.go
Original file line number Diff line number Diff line change
Expand Up @@ -153,8 +153,8 @@ func (s *StatusSyncer) Sync(ctx context.Context) (syncer.SyncResult, error) {
s.Status.Conditions = s.Status.Conditions[len(s.Status.Conditions)-maxStatusesQuantity:]
}

// Update ready nodes' status.
return syncer.SyncResult{}, s.updateNodeStatus(ctx, s.cli, readyNodes)
// Update all nodes' status.
return syncer.SyncResult{}, s.updateNodeStatus(ctx, s.cli, list.Items)
}

// updateClusterStatus update the cluster status and returns condition.
Expand Down

0 comments on commit 671d56e

Please sign in to comment.