Skip to content

Commit 053a85d

Browse files
committed
config: do not load innodb_lock_wait_timeout when to load play replayer
Signed-off-by: Weizhen Wang <wangweizhen@pingcap.com>
1 parent 2bbcc26 commit 053a85d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/util/config/config.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ import (
2727
"go.uber.org/zap"
2828
)
2929

30-
var blackSystemVariableForPlanReplayerLoad = map[string]struct{}{
30+
var ignoredSystemVariablesForPlanReplayerLoad = map[string]struct{}{
3131
"innodb_lock_wait_timeout": {}, // It is unncessary to load this variable for plan replayer.
3232
}
3333

@@ -42,7 +42,7 @@ func LoadConfig(ctx sessionctx.Context, v io.ReadCloser) (unLoadVars []string, e
4242
unLoadVars = make([]string, 0)
4343
vars := ctx.GetSessionVars()
4444
for name, value := range varMap {
45-
if _, ok := blackSystemVariableForPlanReplayerLoad[name]; ok {
45+
if _, ok := ignoredSystemVariablesForPlanReplayerLoad[name]; ok {
4646
continue
4747
}
4848
sysVar := variable.GetSysVar(name)

0 commit comments

Comments
 (0)