Skip to content

Commit 586c144

Browse files
oilbeaterclaude
andcommitted
fix(controller): add finish logs for early return paths in gc functions
Address review feedback: gcAddressSet and gcSecurityGroup had early return paths (when nothing to gc) that were missing finish logs. Signed-off-by: Mengxin Liu <liumengxinfly@gmail.com> Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> Signed-off-by: Mengxin Liu <liumengxinfly@gmail.com>
1 parent 4bb73df commit 586c144

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pkg/controller/gc.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -808,6 +808,7 @@ func (c *Controller) gcAddressSet() error {
808808
}
809809
}
810810
if len(asList) == 0 {
811+
klog.Infof("finish to gc address set")
811812
return nil
812813
}
813814

@@ -855,6 +856,7 @@ func (c *Controller) gcSecurityGroup() error {
855856
}
856857
}
857858
if len(needToDelPgs) == 0 {
859+
klog.Infof("finish to gc security group residual port groups")
858860
return nil
859861
}
860862
if err = c.OVNNbClient.DeletePortGroup(needToDelPgs...); err != nil {

0 commit comments

Comments
 (0)