fix spm evolution task can not finish due to add plan failed
This commit is contained in:
@ -975,20 +975,17 @@ OB_INLINE int ObMPQuery::do_process(ObSQLSessionInfo &session,
|
||||
if (!(ctx_.self_add_plan_) && ctx_.plan_cache_hit_) {
|
||||
plan->update_plan_stat(audit_record,
|
||||
false, // false mean not first update plan stat
|
||||
result.get_exec_context().get_is_evolution(),
|
||||
table_row_count_list);
|
||||
plan->update_cache_access_stat(audit_record.table_scan_stat_);
|
||||
} else if (ctx_.self_add_plan_ && !ctx_.plan_cache_hit_) {
|
||||
plan->update_plan_stat(audit_record,
|
||||
true,
|
||||
result.get_exec_context().get_is_evolution(),
|
||||
table_row_count_list);
|
||||
plan->update_cache_access_stat(audit_record.table_scan_stat_);
|
||||
} else if (ctx_.self_add_plan_ && ctx_.plan_cache_hit_) {
|
||||
// spm evolution plan first execute
|
||||
plan->update_plan_stat(audit_record,
|
||||
true,
|
||||
result.get_exec_context().get_is_evolution(),
|
||||
table_row_count_list);
|
||||
plan->update_cache_access_stat(audit_record.table_scan_stat_);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user