fix: core at calling get_tid()

This commit is contained in:
obdev
2023-03-15 08:16:26 +00:00
committed by ob-robot
parent ed4e8ef8d9
commit a22145febf
13 changed files with 36 additions and 85 deletions

View File

@ -1380,7 +1380,7 @@ int ObTenantDagWorker::set_dag_resource()
LOG_WARN("fail to get group id by function", K(ret), K(MTL_ID()), K(function_type_), K(group_id));
} else if (group_id == group_id_) {
// group not change, do nothing
} else if (OB_FAIL(GCTX.cgroup_ctrl_->add_thread_to_group(static_cast<pid_t>(GETTID()), MTL_ID(), group_id))) {
} else if (OB_FAIL(GCTX.cgroup_ctrl_->add_self_to_group(MTL_ID(), group_id))) {
LOG_WARN("bind back thread to group failed", K(ret), K(GETTID()), K(MTL_ID()), K(group_id));
} else {
ATOMIC_SET(&group_id_, group_id);