Skip to content

Commit 6871675

Browse files
authored
K8SPS-364: Reconcile full cluster crush only for GR cluster type. (#709)
* Reconcile full cluster crush only for GR cluster type. * Remove orc check.
1 parent 9bfcaf9 commit 6871675

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pkg/controller/ps/crash_recovery.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@ import (
1919
func (r *PerconaServerMySQLReconciler) reconcileFullClusterCrash(ctx context.Context, cr *apiv1alpha1.PerconaServerMySQL) error {
2020
log := logf.FromContext(ctx).WithName("Crash recovery")
2121

22+
if cr.Spec.MySQL.IsAsync() {
23+
return nil
24+
}
25+
2226
pods, err := k8s.PodsByLabels(ctx, r.Client, mysql.MatchLabels(cr), cr.Namespace)
2327
if err != nil {
2428
return errors.Wrap(err, "get pods")

0 commit comments

Comments
 (0)