[FEAT MERGE] Phase one of 3A project

Co-authored-by: rolandqi <qikai456@126.com>
Co-authored-by: yangzhifeng <yangzhifeng83@gmail.com>
This commit is contained in:
AntiTopQuark
2023-08-25 08:44:14 +00:00
committed by ob-robot
parent 56ee77a670
commit e0b1dda713
142 changed files with 15224 additions and 1314 deletions

View File

@ -3821,7 +3821,7 @@ int ObSql::pc_get_plan(ObPlanCacheCtx &pc_ctx,
int &get_plan_err,
bool &need_disconnect)
{
ObActiveSessionGuard::get_stat().in_get_plan_cache_ = true;
ACTIVE_SESSION_FLAG_SETTER_GUARD(in_get_plan_cache);
int ret = OB_SUCCESS;
//NG_TRACE(cache_get_plan_begin);
ObPlanCache *plan_cache = NULL;
@ -3903,7 +3903,6 @@ int ObSql::pc_get_plan(ObPlanCacheCtx &pc_ctx,
// 如果sql需要二次路由,不应该断连接
need_disconnect = false;
}
ObActiveSessionGuard::get_stat().in_get_plan_cache_ = false;
return ret;
}