From 3428f067bd9f4ba1f4ff60a8d324a8234ed94045 Mon Sep 17 00:00:00 2001 From: stonezdj Date: Mon, 25 Mar 2024 15:50:22 +0800 Subject: [PATCH] fix issue Signed-off-by: stonezdj --- src/controller/retention/controller.go | 1 - 1 file changed, 1 deletion(-) diff --git a/src/controller/retention/controller.go b/src/controller/retention/controller.go index bcf4fc4200d1..179d8c151be1 100644 --- a/src/controller/retention/controller.go +++ b/src/controller/retention/controller.go @@ -283,7 +283,6 @@ func (r *defaultController) TriggerRetentionExec(ctx context.Context, policyID i if e := r.execMgr.StopAndWaitWithError(ctx, id, 10*time.Second, err); e != nil { logger.Errorf("failed to stop the retention execution %d: %v", id, e) } - } else if num == 0 { // no candidates, mark the execution as done directly if err := r.execMgr.MarkDone(ctx, id, "no resources for retention"); err != nil {