From 8c92f47e4f0a9515eb73637a50b1f51cf70987b1 Mon Sep 17 00:00:00 2001 From: Weizhen Wang Date: Fri, 8 Mar 2024 08:46:18 +0800 Subject: [PATCH] update --- pkg/sessionctx/variable/sysvar.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/sessionctx/variable/sysvar.go b/pkg/sessionctx/variable/sysvar.go index 867147d28e74d..d141bdbb3f11d 100644 --- a/pkg/sessionctx/variable/sysvar.go +++ b/pkg/sessionctx/variable/sysvar.go @@ -1480,9 +1480,9 @@ var defaultSysVars = []*SysVar{ s.SetStatusFlag(mysql.ServerStatusNoBackslashEscaped, sqlMode.HasNoBackslashEscapesMode()) return nil }}, - {Scope: ScopeGlobal, Name: TiDBLoadBindTimeout, Value: "200", Type: TypeUnsigned, MinValue: 0, MaxValue: math.MaxInt32, IsHintUpdatableVerfied: false, SetSession: func(s *SessionVars, val string) error { - timeoutMS := tidbOptPositiveInt32(val, 0) - s.LoadBindTimeout = uint64(timeoutMS) + {Scope: ScopeGlobal, Name: TiDBLoadBindTimeout, Value: "200", Type: TypeUnsigned, MinValue: 0, MaxValue: math.MaxInt32, IsHintUpdatableVerfied: false, SetGlobal: func(ctx context.Context, vars *SessionVars, s string) error { + timeoutMS := tidbOptPositiveInt32(s, 0) + vars.LoadBindTimeout = uint64(timeoutMS) return nil }}, {Scope: ScopeGlobal | ScopeSession, Name: MaxExecutionTime, Value: "0", Type: TypeUnsigned, MinValue: 0, MaxValue: math.MaxInt32, IsHintUpdatableVerfied: true, SetSession: func(s *SessionVars, val string) error {