fix core at create_normal_tenant

This commit is contained in:
obdev
2024-02-08 00:26:51 +00:00
committed by ob-robot
parent af5bc4a3c3
commit d3211dc5be
3 changed files with 4 additions and 5 deletions

View File

@ -24846,8 +24846,8 @@ int ObDDLService::create_normal_tenant(
const int64_t start_time = ObTimeUtility::fast_current_time();
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);
ObSArray<ObTableSchema> tables;
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())) {

View File

@ -9303,8 +9303,8 @@ const ObLSInfo &ObDetectMasterRsLSResult::get_ls_info() const
ObBatchBroadcastSchemaArg::ObBatchBroadcastSchemaArg()
: tenant_id_(common::OB_INVALID_TENANT_ID),
sys_schema_version_(common::OB_INVALID_VERSION),
tables_(),
allocator_("BroadcastSchema", OB_MALLOC_MIDDLE_BLOCK_SIZE)
allocator_("BroadcastSchema", OB_MALLOC_MIDDLE_BLOCK_SIZE),
tables_()
{}
ObBatchBroadcastSchemaArg::~ObBatchBroadcastSchemaArg()

View File

@ -9634,9 +9634,8 @@ public:
private:
uint64_t tenant_id_;
int64_t sys_schema_version_;
common::ObSArray<share::schema::ObTableSchema> tables_;
public:
common::ObArenaAllocator allocator_;
common::ObSArray<share::schema::ObTableSchema> tables_;
};
struct ObBatchBroadcastSchemaResult