Skip to content

Commit

Permalink
Merge pull request radondb#164 from radondb/revert-161-fix_bug
Browse files Browse the repository at this point in the history
Revert "cluster: fix the bug of unchange when the status is't updated…
  • Loading branch information
andyli029 authored Aug 3, 2021
2 parents 3fc730c + 1538125 commit 20fd665
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions cluster/syncer/status.go
Original file line number Diff line number Diff line change
Expand Up @@ -226,9 +226,7 @@ func (s *StatusSyncer) updateNodeStatus(ctx context.Context, cli client.Client,
log.Error(err, "cannot update pod", "name", podName, "namespace", pod.Namespace)
}
}
if len(pods) != int(*s.Spec.Replicas) {
return fmt.Errorf("not all replicas do something")
}

return nil
}

Expand Down

0 comments on commit 20fd665

Please sign in to comment.