Fix:StmtSavedValue forgot to reset, unified repair
This commit is contained in:
parent
e76485f957
commit
4ae54478d2
@ -462,6 +462,9 @@ int ObStatsEstimator::do_estimate(uint64_t tenant_id,
|
||||
LOG_WARN("failed to restore session", K(tmp_ret));
|
||||
ret = COVER_SUCC(tmp_ret);
|
||||
}
|
||||
if (OB_NOT_NULL(session_value)) {
|
||||
session_value->reset();
|
||||
}
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
|
@ -478,6 +478,9 @@ int ObSqlPlan::inner_store_sql_plan_for_explain(ObExecContext *ctx,
|
||||
ret = end_ret;
|
||||
}
|
||||
}
|
||||
if (OB_NOT_NULL(saved_session)) {
|
||||
saved_session->reset();
|
||||
}
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
|
@ -532,6 +532,9 @@ int ObDynamicSampling::estimte_rowcount(int64_t max_ds_timeout,
|
||||
ret = COVER_SUCC(tmp_ret);
|
||||
LOG_WARN("failed to restore session", K(tmp_ret));
|
||||
}
|
||||
if (OB_NOT_NULL(session_value)) {
|
||||
session_value->reset();
|
||||
}
|
||||
}
|
||||
LOG_TRACE("go to dynamic sample one time", K(sample_block_ratio_), K(ret),
|
||||
K(raw_sql_str), K(max_ds_timeout), K(start_time), K(ObTimeUtility::current_time() - start_time));
|
||||
|
Loading…
x
Reference in New Issue
Block a user