@@ -856,7 +856,7 @@ var defaultSysVars = []*SysVar{
856856 return nil
857857 }},
858858 {Scope : ScopeGlobal , Name : TiDBGOGCTunerMaxValue , Value : strconv .Itoa (DefTiDBGOGCMaxValue ),
859- Type : TypeInt , MinValue : 10 , SetGlobal : func (_ context.Context , s * SessionVars , val string ) error {
859+ Type : TypeInt , MinValue : 10 , MaxValue : math . MaxInt32 , SetGlobal : func (_ context.Context , s * SessionVars , val string ) error {
860860 maxValue := TidbOptInt64 (val , DefTiDBGOGCMaxValue )
861861 gctuner .SetMaxGCPercent (uint32 (maxValue ))
862862 gctuner .GlobalMemoryLimitTuner .UpdateMemoryLimit ()
@@ -873,7 +873,7 @@ var defaultSysVars = []*SysVar{
873873 return origin , nil
874874 }},
875875 {Scope : ScopeGlobal , Name : TiDBGOGCTunerMinValue , Value : strconv .Itoa (DefTiDBGOGCMinValue ),
876- Type : TypeInt , MinValue : 10 , SetGlobal : func (_ context.Context , s * SessionVars , val string ) error {
876+ Type : TypeInt , MinValue : 10 , MaxValue : math . MaxInt32 , SetGlobal : func (_ context.Context , s * SessionVars , val string ) error {
877877 minValue := TidbOptInt64 (val , DefTiDBGOGCMinValue )
878878 gctuner .SetMinGCPercent (uint32 (minValue ))
879879 gctuner .GlobalMemoryLimitTuner .UpdateMemoryLimit ()
0 commit comments