Skip to content

Commit c49735e

Browse files
author
smiletan
authored
Merge pull request #437 from intelligentfu8/cg-rename
[bug]fix sql connection not close
2 parents 2b458b8 + dfa4b33 commit c49735e

File tree

1 file changed

+2
-0
lines changed
  • pkg/controller/sub_controller/disaggregated_cluster/computegroups

1 file changed

+2
-0
lines changed

pkg/controller/sub_controller/disaggregated_cluster/computegroups/controller.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -624,6 +624,8 @@ func(dcgs *DisaggregatedComputeGroupsController) recordComputeGroupIds(ddc *dv1.
624624
klog.Errorf("DisaggregatedComputeGroupsController recordComputeGroupIds new doris client failed,err=%s", err.Error())
625625
return err
626626
}
627+
defer db.Close()
628+
627629
backends, err := db.ShowBackends()
628630
if err != nil {
629631
klog.Errorf("DisaggregatedComputeGroupsController recordComputeGroupIds show backends failed, err=%s", err.Error())

0 commit comments

Comments
 (0)