[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

@ -43,8 +43,8 @@ public:
lib::ObMallocAllocator *malloc_allocator = lib::ObMallocAllocator::get_instance();
//ret = malloc_allocator->create_tenant_ctx_allocator(OB_SYS_TENANT_ID);
//ASSERT_EQ(OB_SUCCESS, ret);
ret = malloc_allocator->create_tenant_ctx_allocator(
OB_SYS_TENANT_ID, common::ObCtxIds::WORK_AREA);
ret = malloc_allocator->create_and_add_tenant_allocator(
OB_SYS_TENANT_ID);
ASSERT_EQ(OB_SUCCESS, ret);
int s = (int)time(NULL);
LOG_INFO("initial setup random seed", K(s));

View File

@ -42,7 +42,7 @@ public:
lib::ObMallocAllocator *malloc_allocator = lib::ObMallocAllocator::get_instance();
//ret = malloc_allocator->create_tenant_ctx_allocator(OB_SYS_TENANT_ID);
//ASSERT_EQ(OB_SUCCESS, ret);
ret = malloc_allocator->create_tenant_ctx_allocator(OB_SYS_TENANT_ID, common::ObCtxIds::WORK_AREA);
ret = malloc_allocator->create_and_add_tenant_allocator(OB_SYS_TENANT_ID);
ASSERT_EQ(OB_SUCCESS, ret);
int s = (int)time(NULL);
LOG_WARN("initial setup random seed", K(s));

View File

@ -35,9 +35,7 @@ public:
lib::AChunkMgr::instance().set_max_chunk_cache_cnt(0);
int ret = OB_SUCCESS;
lib::ObMallocAllocator *malloc_allocator = lib::ObMallocAllocator::get_instance();
ret = malloc_allocator->create_tenant_ctx_allocator(OB_SYS_TENANT_ID);
ASSERT_EQ(OB_SUCCESS, ret);
ret = malloc_allocator->create_tenant_ctx_allocator(OB_SYS_TENANT_ID, common::ObCtxIds::WORK_AREA);
ret = malloc_allocator->create_and_add_tenant_allocator(OB_SYS_TENANT_ID);
ASSERT_EQ(OB_SUCCESS, ret);
int s = (int)time(NULL);
LOG_INFO("initial setup random seed", K(s));