check max_read_stale_time when setting variables

This commit is contained in:
dimstars
2023-05-29 10:41:24 +00:00
committed by ob-robot
parent 7588202b83
commit e3d38080aa
5 changed files with 36 additions and 8 deletions

View File

@ -2882,7 +2882,7 @@ static struct VarsInit{
ObSysVars[219].info_ = "max stale time(us) for weak read query " ;
ObSysVars[219].name_ = "ob_max_read_stale_time" ;
ObSysVars[219].data_type_ = ObIntType ;
ObSysVars[219].value_ = "5000000" ;
ObSysVars[219].value_ = "-1" ;
ObSysVars[219].flags_ = ObSysVarFlag::GLOBAL_SCOPE | ObSysVarFlag::SESSION_SCOPE | ObSysVarFlag::NEED_SERIALIZE ;
ObSysVars[219].on_check_and_convert_func_ = "ObSysVarOnCheckFuncs::check_and_convert_timeout_too_large" ;
ObSysVars[219].id_ = SYS_VAR_OB_MAX_READ_STALE_TIME ;