Skip to content

Commit

Permalink
fix linter
Browse files Browse the repository at this point in the history
  • Loading branch information
tangenta committed Dec 7, 2023
1 parent 4324b72 commit c7d7fea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/executor/executor.go
Original file line number Diff line number Diff line change
Expand Up @@ -2359,7 +2359,7 @@ func getCheckSum(ctx context.Context, se sessionctx.Context, sql string) ([]grou
return checksums, nil
}

func (w *checkIndexWorker) initSessCtx(ctx context.Context, se sessionctx.Context) (restore func()) {
func (w *checkIndexWorker) initSessCtx(se sessionctx.Context) (restore func()) {
sessVars := se.GetSessionVars()
originOptUseInvisibleIdx := sessVars.OptimizerUseInvisibleIndexes
originMemQuotaQuery := sessVars.MemQuotaQuery
Expand Down Expand Up @@ -2389,7 +2389,7 @@ func (w *checkIndexWorker) HandleTask(task checkIndexTask, _ func(workerpool.Non
trySaveErr(err)
return
}
restoreCtx := w.initSessCtx(ctx, se)
restoreCtx := w.initSessCtx(se)
defer func() {
restoreCtx()
w.e.Base().ReleaseSysSession(ctx, se)
Expand Down

0 comments on commit c7d7fea

Please sign in to comment.