use hint control sql memory managment

This commit is contained in:
18523270951@163.com
2024-01-09 05:12:53 +00:00
committed by ob-robot
parent b3f443bed0
commit 60a50ead31
8 changed files with 40 additions and 8 deletions

View File

@ -53,6 +53,10 @@ int ObSqlMemMgrProcessor::init(
LOG_WARN("failed to set exec info", K(ret));
} else if (OB_FAIL(alloc_dir_id(dir_id_))) {
} else if (OB_NOT_NULL(sql_mem_mgr)) {
if (OB_NOT_NULL(exec_ctx->get_physical_plan_ctx())
&& OB_NOT_NULL(exec_ctx->get_physical_plan_ctx()->get_phy_plan())) {
profile_.disable_auto_mem_mgr_ = exec_ctx->get_physical_plan_ctx()->get_phy_plan()->is_disable_auto_memory_mgr();
}
if (sql_mem_mgr->enable_auto_memory_mgr()) {
tmp_enable_auto_mem_mgr = true;
if (profile_.get_auto_policy()) {