allow only compaction task/dag set compaction mem ctx

This commit is contained in:
obdev
2024-02-08 13:39:25 +00:00
committed by ob-robot
parent 9cc9bbcf7a
commit e732720d20
2 changed files with 25 additions and 2 deletions

View File

@ -1698,6 +1698,16 @@ bool ObTenantDagWorker::get_force_cancel_flag()
return flag;
}
bool ObTenantDagWorker::hold_by_compaction_dag()
{
bool bret = false;
ObIDag *dag = nullptr;
if (OB_NOT_NULL(task_) && OB_NOT_NULL(dag = task_->get_dag())) {
bret = is_compaction_dag(dag->get_type());
}
return bret;
}
void ObTenantDagWorker::run1()
{
self_ = this;