fix temp table mismatch plan

This commit is contained in:
obdev
2023-02-06 13:23:20 +08:00
committed by ob-robot
parent 73b10be4ad
commit 909f6b5b16
2 changed files with 26 additions and 2 deletions

View File

@ -901,6 +901,8 @@ ObPlanCache *ObSQLSessionInfo::get_plan_cache()
LOG_WARN("failed to get plan cache");
} else if (MTL_ID() != get_effective_tenant_id()) {
LOG_ERROR("unmatched tenant_id", K(MTL_ID()), K(get_effective_tenant_id()));
} else if (plan_cache_->is_inited()) {
// skip update mem conf
} else if (OB_SUCCESS != plan_cache_->set_mem_conf(pc_mem_conf)) {
LOG_ERROR("fail to set plan cache memory conf");
}