Skip to content

Commit

Permalink
fix: issue 611; mysql conn increase
Browse files Browse the repository at this point in the history
  • Loading branch information
576470954 committed Sep 20, 2023
1 parent 24fc4a0 commit 7a8b376
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/datasource/sql/datasource/base/meta_cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,8 @@ func (c *BaseTableMetaCache) GetTableMeta(ctx context.Context, dbName, tableName
c.lock.Lock()
defer c.lock.Unlock()

defer conn.Close()

v, ok := c.cache[tableName]
if !ok {
meta, err := c.trigger.LoadOne(ctx, dbName, tableName, conn)
Expand Down

0 comments on commit 7a8b376

Please sign in to comment.