[CP] fix get_conn core

This commit is contained in:
sdc
2023-08-08 09:13:02 +00:00
committed by ob-robot
parent 7a3548cb4b
commit dc309ed187
2 changed files with 5 additions and 8 deletions

View File

@ -386,7 +386,7 @@ int ObMPQuery::process()
IGNORE_RETURN record_flt_trace(session);
}
if (OB_UNLIKELY(NULL != GCTX.cgroup_ctrl_) && GCTX.cgroup_ctrl_->is_valid()) {
if (OB_UNLIKELY(NULL != GCTX.cgroup_ctrl_) && GCTX.cgroup_ctrl_->is_valid() && is_conn_valid()) {
int tmp_ret = OB_SUCCESS;
// Call setup_user_resource_group no matter OB_SUCC or OB_FAIL
// because we have to reset conn.group_id_ according to user_name.