Compatible with upstream components that do not support show trace

This commit is contained in:
obdev
2023-01-28 20:22:15 +08:00
committed by ob-robot
parent 869f4c0bb8
commit f8c8061bfa
7 changed files with 56 additions and 8 deletions

View File

@ -1508,7 +1508,7 @@ static struct VarsInit{
ObSysVars[111].name_ = "ob_enable_show_trace" ;
ObSysVars[111].data_type_ = ObIntType ;
ObSysVars[111].value_ = "0" ;
ObSysVars[111].flags_ = ObSysVarFlag::GLOBAL_SCOPE | ObSysVarFlag::SESSION_SCOPE | ObSysVarFlag::NEED_SERIALIZE ;
ObSysVars[111].flags_ = ObSysVarFlag::SESSION_SCOPE | ObSysVarFlag::NEED_SERIALIZE ;
ObSysVars[111].id_ = SYS_VAR_OB_ENABLE_SHOW_TRACE ;
cur_max_var_id = MAX(cur_max_var_id, static_cast<int64_t>(SYS_VAR_OB_ENABLE_SHOW_TRACE)) ;
ObSysVarsIdToArrayIdx[SYS_VAR_OB_ENABLE_SHOW_TRACE] = 111 ;

View File

@ -1489,7 +1489,7 @@
"value": "0",
"data_type": "bool",
"info": "control whether use show trace",
"flags": "Global | SESSION | NEED_SERIALIZE",
"flags": "SESSION | NEED_SERIALIZE",
"publish_version": "",
"info_cn": "",
"background_cn": "",