fix(region): sync remove backend group (#22758)

This commit is contained in:
屈轩
2025-06-20 19:38:18 +08:00
committed by GitHub
parent 71070e6e68
commit 064c23040e
@@ -692,11 +692,6 @@ func (lbbg *SLoadbalancerBackendGroup) syncRemove(ctx context.Context, userCred
lockman.LockObject(ctx, lbbg)
defer lockman.ReleaseObject(ctx, lbbg)
err := lbbg.ValidateDeleteCondition(ctx, nil)
if err != nil { // cannot delete
lbbg.SetStatus(ctx, userCred, api.LB_STATUS_UNKNOWN, "sync to delete")
return errors.Wrapf(err, "ValidateDeleteCondition")
}
notifyclient.EventNotify(ctx, userCred, notifyclient.SEventNotifyParam{
Obj: lbbg,
Action: notifyclient.ActionSyncDelete,