[CP] add new parameter used to control spm intead of sys variable

This commit is contained in:
obdev
2024-06-26 06:49:10 +00:00
committed by ob-robot
parent 98a5eb0549
commit 4c3343960f
16 changed files with 134 additions and 54 deletions

View File

@ -5105,7 +5105,7 @@ OB_NOINLINE int ObSql::handle_physical_plan(const ObString &trimed_stmt,
LOG_WARN("get null physical plan", K(ret), K(result.get_physical_plan()), K(baseline_item));
} else if (result.get_physical_plan()->get_plan_hash_value() == baseline_item->get_plan_hash_value()) {
pc_ctx.need_evolution_ = true;
if (spm_ctx.cur_baseline_not_enable_ || !spm_ctx.capture_baseline_) {
if (spm_ctx.cur_baseline_not_enable_) {
spm_ctx.spm_stat_ = ObSpmCacheCtx::SpmStat::STAT_ACCEPT_BASELINE_PLAN;
} else {
spm_ctx.spm_stat_ = ObSpmCacheCtx::SpmStat::STAT_ADD_BASELINE_PLAN;