add double-destroy check for MemoryContext
This commit is contained in:
@ -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 {
|
||||
|
||||
@ -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
|
||||
|
||||
Reference in New Issue
Block a user