@@ -830,7 +830,7 @@ var defaultSysVars = []*SysVar{
830
830
return nil
831
831
}},
832
832
{Scope : ScopeGlobal , Name : TiDBGOGCTunerMaxValue , Value : strconv .Itoa (DefTiDBGOGCMaxValue ),
833
- Type : TypeInt , MinValue : 10 , SetGlobal : func (_ context.Context , s * SessionVars , val string ) error {
833
+ Type : TypeInt , MinValue : 10 , MaxValue : math . MaxInt32 , SetGlobal : func (_ context.Context , s * SessionVars , val string ) error {
834
834
maxValue := TidbOptInt64 (val , DefTiDBGOGCMaxValue )
835
835
gctuner .SetMaxGCPercent (uint32 (maxValue ))
836
836
gctuner .GlobalMemoryLimitTuner .UpdateMemoryLimit ()
@@ -847,7 +847,7 @@ var defaultSysVars = []*SysVar{
847
847
return origin , nil
848
848
}},
849
849
{Scope : ScopeGlobal , Name : TiDBGOGCTunerMinValue , Value : strconv .Itoa (DefTiDBGOGCMinValue ),
850
- Type : TypeInt , MinValue : 10 , SetGlobal : func (_ context.Context , s * SessionVars , val string ) error {
850
+ Type : TypeInt , MinValue : 10 , MaxValue : math . MaxInt32 , SetGlobal : func (_ context.Context , s * SessionVars , val string ) error {
851
851
minValue := TidbOptInt64 (val , DefTiDBGOGCMinValue )
852
852
gctuner .SetMinGCPercent (uint32 (minValue ))
853
853
gctuner .GlobalMemoryLimitTuner .UpdateMemoryLimit ()
0 commit comments