[FEAT MERGE] dynamic_server_spec phase1

This commit is contained in:
obdev
2024-02-07 14:23:50 +00:00
committed by ob-robot
parent 46b64790bc
commit bbfbefabdf
29 changed files with 3756 additions and 3053 deletions

View File

@ -238,10 +238,10 @@ TEST_F(TestObjectMgr, TestSubObjectMgr)
abort_unless(ptr != MAP_FAILED);
int64_t tenant_id = OB_SERVER_TENANT_ID;
int64_t ctx_id = ObCtxIds::DEFAULT_CTX_ID;
SubObjectMgr som(false, tenant_id, ctx_id, INTACT_NORMAL_AOBJECT_SIZE, false, NULL);
auto ta = ObMallocAllocator::get_instance()->get_tenant_ctx_allocator(
tenant_id, ctx_id);
ObjectMgr som(*ta.ref_allocator(), false, INTACT_NORMAL_AOBJECT_SIZE, 1, false, NULL);
ObMemAttr attr;
som.set_tenant_ctx_allocator(*ObMallocAllocator::get_instance()->get_tenant_ctx_allocator(
tenant_id, ctx_id).ref_allocator());
ObTenantResourceMgrHandle resource_handle;
ObResourceMgr::get_instance().get_tenant_resource_mgr(
tenant_id, resource_handle);