Add context (context.Context
) for global variable get/set
#38378
Labels
type/enhancement
The issue or PR belongs to an enhancement.
context.Context
) for global variable get/set
#38378
Enhancement
The hook of set/get global variable doesn't have a
context.Context
argument. However, it theoretically could have (from theset
statement).#38274 will add a set/get hook which reads from the pd, and it requires the hook has an argumentcontext.Context
.Besides the direct
set
statement, some codes of tidb use the same functions to set/get the variables directly, and they don't have acontext.Context
in near stacks. So I'll only add context for theset
,show
,select
statement execution, but not for every usage.The text was updated successfully, but these errors were encountered: