fix query __all_virtual_processlist bugs

This commit is contained in:
raywill
2022-03-21 14:34:42 +08:00
committed by LINxiansheng
parent 97b3bfab8b
commit 4f1f1b93b9
7 changed files with 40 additions and 22 deletions

View File

@ -124,7 +124,8 @@ int ObMPQuery::process()
THIS_WORKER.set_session(sess);
ObSQLSessionInfo& session = *sess;
ObSQLSessionInfo::LockGuard lock_guard(session.get_query_lock());
sess->set_use_static_typing_engine(GCONF.enable_static_engine_for_query());
session.set_use_static_typing_engine(GCONF.enable_static_engine_for_query());
session.set_current_trace_id(ObCurTraceId::get_trace_id());
int64_t val = 0;
const bool check_throttle = extract_pure_id(sess->get_user_id()) != OB_SYS_USER_ID;
if (check_throttle && !sess->is_inner() && sess->get_raw_audit_record().try_cnt_ == 0 &&