Fix:StmtSavedValue forgot to reset, unified repair

This commit is contained in:
yaojing624 2024-05-30 09:10:12 +00:00 committed by ob-robot
parent e76485f957
commit 4ae54478d2
3 changed files with 9 additions and 0 deletions

View File

@ -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;
}

View File

@ -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;
}

View File

@ -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));