[FEAT MERGE]logical plan move to plan cache module add feedback into to plan
This commit is contained in:
@ -759,7 +759,15 @@ OB_INLINE int ObResultSet::do_close_plan(int errcode, ObExecContext &ctx)
|
||||
ret = sret;
|
||||
}
|
||||
if (OB_SUCC(ret)) {
|
||||
physical_plan_->set_record_plan_info(false);
|
||||
if (physical_plan_->need_record_plan_info()) {
|
||||
if (ctx.get_feedback_info().is_valid() &&
|
||||
physical_plan_->get_logical_plan().is_valid() &&
|
||||
OB_FAIL(physical_plan_->set_feedback_info(ctx))) {
|
||||
LOG_WARN("failed to set feedback info", K(ret));
|
||||
} else {
|
||||
physical_plan_->set_record_plan_info(false);
|
||||
}
|
||||
}
|
||||
}
|
||||
} else {
|
||||
ret = OB_ERR_UNEXPECTED;
|
||||
|
||||
Reference in New Issue
Block a user