[FEAT MERGE] del_tenant_memleak branch
Co-authored-by: HaHaJeff <jeffzhouhhh@gmail.com>
This commit is contained in:
@ -494,13 +494,13 @@ OB_INLINE int ObExprValuesOp::calc_next_row()
|
||||
if (ObObjDatumMapType::OBJ_DATUM_STRING == dst_expr->obj_datum_map_) {
|
||||
ObExprStrResAlloc res_alloc(*dst_expr, eval_ctx_);
|
||||
if (OB_FAIL(dst_datum.deep_copy(*datum, res_alloc))) {
|
||||
LOG_WARN("fail to deep copy datum from cast res datum", K(ret), K(*datum));
|
||||
LOG_WARN("fail to deep copy datum from cast res datum", K(ret), KP(datum));
|
||||
}
|
||||
} else {
|
||||
ObDataBuffer res_alloc(const_cast<char*>(dst_datum.ptr_),
|
||||
dst_expr->res_buf_len_);
|
||||
if (OB_FAIL(dst_datum.deep_copy(*datum, res_alloc))) {
|
||||
LOG_WARN("fail to deep copy datum from cast res datum", K(ret), K(*datum));
|
||||
LOG_WARN("fail to deep copy datum from cast res datum", K(ret), KP(datum));
|
||||
}
|
||||
}
|
||||
dst_expr->set_evaluated_projected(eval_ctx_);
|
||||
|
||||
@ -1272,7 +1272,7 @@ bool ObRADatumStore::need_dump()
|
||||
} else {
|
||||
const int64_t mem_ctx_pct_trigger = 80;
|
||||
lib::ObMallocAllocator *instance = lib::ObMallocAllocator::get_instance();
|
||||
lib::ObTenantCtxAllocator *allocator = NULL;
|
||||
lib::ObTenantCtxAllocatorGuard allocator = NULL;
|
||||
if (NULL == instance) {
|
||||
ret = common::OB_ERR_SYS;
|
||||
LOG_ERROR("NULL allocator", K(ret));
|
||||
|
||||
@ -1052,7 +1052,7 @@ bool ObRARowStore::need_dump()
|
||||
} else {
|
||||
const int64_t mem_ctx_pct_trigger = 80;
|
||||
lib::ObMallocAllocator *instance = lib::ObMallocAllocator::get_instance();
|
||||
lib::ObTenantCtxAllocator *allocator = NULL;
|
||||
lib::ObTenantCtxAllocatorGuard allocator = NULL;
|
||||
if (NULL == instance) {
|
||||
ret = common::OB_ERR_SYS;
|
||||
LOG_ERROR("NULL allocator", K(ret));
|
||||
|
||||
Reference in New Issue
Block a user