Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
qw4990 committed Dec 1, 2023
1 parent 7346a76 commit af658c3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/bindinfo/handle.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ func (h *BindHandle) setCache(c *bindCache) {
// Reset is to reset the BindHandle and clean old info.
func (h *BindHandle) Reset(ctx sessionctx.Context) {
h.sctx.Context = ctx
h.lastUpdateTime.Store(types.ZeroTimestamp)
h.invalidBindRecordMap.Value.Store(make(map[string]*bindRecordUpdate))
h.invalidBindRecordMap.flushFunc = func(record *BindRecord) error {
_, err := h.DropGlobalBinding(record.OriginalSQL, record.Db, &record.Bindings[0])
Expand Down

0 comments on commit af658c3

Please sign in to comment.