opensource bigfix patch

This commit is contained in:
obdev
2021-07-13 19:42:21 +08:00
committed by wangzelin.wzl
parent 2c4f8593fb
commit f27ecbb784
17 changed files with 124 additions and 52 deletions

View File

@ -1195,8 +1195,9 @@ int ObSqlPlanSet::get_local_plan_direct(ObPlanCacheCtx& pc_ctx, bool& is_direct_
plan = local_plan_;
}
if (OB_SUCC(ret) && plan != NULL) {
int last_retry_err = pc_ctx.sql_ctx_.session_info_->get_retry_info().get_last_query_retry_err();
if (plan->is_last_open_succ()) {
int last_retry_err = pc_ctx.sql_ctx_.session_info_
->get_retry_info().get_last_query_retry_err();
if (plan->is_last_exec_succ()) {
is_direct_local_plan = true;
} else if (pc_ctx.sql_ctx_.session_info_->get_is_in_retry() && is_local_plan_opt_allowed(last_retry_err)) {
is_direct_local_plan = true;