add double-destroy check for MemoryContext

This commit is contained in:
jg0
2021-07-27 19:54:14 +08:00
committed by wangzelin.wzl
parent 91852f9b58
commit 0b7773c43f
86 changed files with 416 additions and 329 deletions

View File

@ -451,7 +451,7 @@ int ObSubPlanFilterOp::handle_update_set()
lib::ContextParam param;
param.set_mem_attr(ctx_.get_my_session()->get_effective_tenant_id(), ObModIds::OB_SQL_EXECUTOR, ObCtxIds::WORK_AREA)
.set_properties(lib::USE_TL_PAGE_OPTIONAL);
if (OB_FAIL(CURRENT_CONTEXT.CREATE_CONTEXT(update_set_mem_, param))) {
if (OB_FAIL(CURRENT_CONTEXT->CREATE_CONTEXT(update_set_mem_, param))) {
LOG_WARN("create memory entity failed", K(ret));
}
} else {

View File

@ -126,7 +126,7 @@ private:
private:
common::ObSEArray<Iterator*, 16> subplan_iters_;
lib::MemoryContext* update_set_mem_;
lib::MemoryContext update_set_mem_;
};
} // end namespace sql