We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 10f08ce + c6980cb commit b8cb91aCopy full SHA for b8cb91a
mysqlcluster/syncer/statefulset.go
@@ -289,7 +289,7 @@ func (s *StatefulSetSyncer) createOrUpdate(ctx context.Context) (controllerutil.
289
// updatePod update the pods, update follower nodes first.
290
// This can reduce the number of master-slave switching during the update process.
291
func (s *StatefulSetSyncer) updatePod(ctx context.Context) error {
292
- if s.sfs.Status.UpdatedReplicas >= s.sfs.Status.Replicas {
+ if s.sfs.Status.UpdateRevision == s.sfs.Status.CurrentRevision {
293
return nil
294
}
295
0 commit comments