Fix core at plan cache ObCacheObject::pre_calculation

This commit is contained in:
lf0
2022-02-07 18:57:42 +08:00
committed by LINxiansheng
parent f51dd07dba
commit 9710bb145a
3 changed files with 12 additions and 0 deletions

View File

@ -86,6 +86,13 @@ ObPhysicalPlanCtx::ObPhysicalPlanCtx(common::ObIAllocator& allocator)
ObPhysicalPlanCtx::~ObPhysicalPlanCtx()
{}
void ObPhysicalPlanCtx::restore_param_store(const int64_t original_param_cnt)
{
for (int64_t i = param_store_.count(); i > original_param_cnt; --i) {
param_store_.pop_back();
}
}
int ObPhysicalPlanCtx::reserve_param_space(int64_t param_count)
{
int ret = OB_SUCCESS;