[FEAT MERGE] del_tenant_memleak branch

Co-authored-by: HaHaJeff <jeffzhouhhh@gmail.com>
This commit is contained in:
obdev
2023-01-28 19:29:23 +08:00
committed by ob-robot
parent e3b89cd741
commit ba19ba90e0
179 changed files with 3235 additions and 2291 deletions

View File

@ -96,7 +96,7 @@ int64_t ObILibCacheObject::inc_ref_count(const CacheRefHandleID ref_handle)
{
int ret = OB_SUCCESS;
if (GCONF._enable_plan_cache_mem_diagnosis) {
ObPlanCache *lib_cache = ObCacheObjectFactory::get_plan_cache(tenant_id_);
ObPlanCache *lib_cache = MTL(ObPlanCache*);
if (OB_ISNULL(lib_cache)) {
LOG_ERROR("invalid null lib cache", K(ret));
} else {
@ -110,7 +110,7 @@ int64_t ObILibCacheObject::dec_ref_count(const CacheRefHandleID ref_handle)
{
int ret = OB_SUCCESS;
if (GCONF._enable_plan_cache_mem_diagnosis) {
ObPlanCache *lib_cache = ObCacheObjectFactory::get_plan_cache(tenant_id_);
ObPlanCache *lib_cache = MTL(ObPlanCache*);
if (OB_ISNULL(lib_cache)) {
LOG_ERROR("invalid null lib cache", K(ret));
} else {