[CP] opt the ScheObSchemAren
This commit is contained in:
committed by
ant-ob-hengtang
parent
29eb19ee7f
commit
59b1175bac
@ -24225,6 +24225,7 @@ int ObDDLService::create_normal_tenant(
|
||||
LOG_INFO("[CREATE_TENANT] STEP 2. start create tenant", K(tenant_id), K(tenant_schema), K(source_tenant_id));
|
||||
int ret = OB_SUCCESS;
|
||||
ObSArray<ObTableSchema> tables;
|
||||
ObArenaAllocator arena_allocator("InnerTableSchem", OB_MALLOC_MIDDLE_BLOCK_SIZE);
|
||||
if (OB_FAIL(check_inner_stat())) {
|
||||
LOG_WARN("variable is not init", KR(ret));
|
||||
} else if (OB_UNLIKELY(!recovery_until_scn.is_valid_and_not_min())) {
|
||||
@ -24239,7 +24240,7 @@ int ObDDLService::create_normal_tenant(
|
||||
LOG_WARN("fail to create tenant sys log stream", KR(ret), K(tenant_schema), K(pool_list), K(palf_base_info), K(source_tenant_id));
|
||||
} else if (is_user_tenant(tenant_id) && !tenant_role.is_primary()) {
|
||||
//standby cluster no need create sys tablet and init tenant schema
|
||||
} else if (OB_FAIL(ObSchemaUtils::construct_inner_table_schemas(tenant_id, tables))) {
|
||||
} else if (OB_FAIL(ObSchemaUtils::construct_inner_table_schemas(tenant_id, tables, arena_allocator))) {
|
||||
LOG_WARN("fail to get inner table schemas in tenant space", KR(ret), K(tenant_id));
|
||||
} else if (OB_FAIL(broadcast_sys_table_schemas(tenant_id, tables))) {
|
||||
LOG_WARN("fail to broadcast sys table schemas", KR(ret), K(tenant_id));
|
||||
|
||||
Reference in New Issue
Block a user