[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

@ -37,6 +37,7 @@ public:
~TestSSTableMergeInfoMgr() {}
void SetUp()
{
ObMallocAllocator::get_instance()->create_and_add_tenant_allocator(1001);
ObUnitInfoGetter::ObTenantConfig unit_config;
unit_config.mode_ = lib::Worker::CompatMode::MYSQL;
unit_config.tenant_id_ = 0;
@ -55,6 +56,7 @@ public:
merge_info_mgr_ = nullptr;
tenant_base_.destroy();
ObTenantEnv::set_tenant(nullptr);
ObMallocAllocator::get_instance()->recycle_tenant_allocator(1001);
}
private:
const uint64_t tenant_id_;