set ddl_table_type_ when creating tablet
This commit is contained in:
@ -113,7 +113,8 @@ int __attribute__((weak)) gen_create_tablet_arg(const int64_t tenant_id,
|
||||
tablet_id,
|
||||
index_tablet_schema_idxs,
|
||||
lib::Worker::CompatMode::MYSQL,
|
||||
false))) {
|
||||
false,
|
||||
false /*has_cs_replica*/))) {
|
||||
STORAGE_LOG(WARN, "failed to init tablet info", KR(ret), K(index_tablet_ids),
|
||||
K(tablet_id), K(index_tablet_schema_idxs));
|
||||
} else if (OB_FAIL(arg.init_create_tablet(ls_id, share::SCN::min_scn(), false/*need_check_tablet_cnt*/))) {
|
||||
|
@ -444,7 +444,7 @@ int TestCompactionPolicy::mock_tablet(
|
||||
} else if (FALSE_IT(need_generate_cs_replica_cg_array = ls_handle.get_ls()->is_cs_replica() && create_tablet_schema.is_row_store() && create_tablet_schema.is_user_data_table())) {
|
||||
} else if (OB_FAIL(tablet->init_for_first_time_creation(allocator, ls_id, tablet_id, tablet_id,
|
||||
SCN::min_scn(), snapshot_version, create_tablet_schema, need_empty_major_table,
|
||||
false/*micro_index_clustered*/, need_generate_cs_replica_cg_array, ls_handle.get_ls()->get_freezer()))) {
|
||||
false/*micro_index_clustered*/, need_generate_cs_replica_cg_array, false/*has_cs_replica*/, ls_handle.get_ls()->get_freezer()))) {
|
||||
LOG_WARN("failed to init tablet", K(ret), K(ls_id), K(tablet_id), K(snapshot_version),
|
||||
K(table_schema), K(compat_mode));
|
||||
} else {
|
||||
|
@ -575,7 +575,7 @@ int TestDmlCommon::build_pure_data_tablet_arg(
|
||||
STORAGE_LOG(WARN, "failed to push tablet id into array", K(ret), K(data_tablet_id));
|
||||
} else if (OB_FAIL(tablet_schema_index_array.push_back(0))) {
|
||||
STORAGE_LOG(WARN, "failed to push index into array", K(ret));
|
||||
} else if (OB_FAIL(tablet_info.init(tablet_id_array, data_tablet_id, tablet_schema_index_array, lib::Worker::CompatMode::MYSQL, false))) {
|
||||
} else if (OB_FAIL(tablet_info.init(tablet_id_array, data_tablet_id, tablet_schema_index_array, lib::Worker::CompatMode::MYSQL, false, false /*has_cs_replica*/))) {
|
||||
STORAGE_LOG(WARN, "failed to init tablet info", K(ret), K(tablet_id_array),
|
||||
K(data_tablet_id), K(tablet_schema_index_array));
|
||||
} else if (OB_FAIL(arg.init_create_tablet(ls_id, share::SCN::min_scn(), false/*need_check_tablet_cnt*/))) {
|
||||
@ -627,7 +627,7 @@ int TestDmlCommon::build_mixed_tablets_arg(
|
||||
STORAGE_LOG(WARN, "failed to push index into array", K(ret));
|
||||
} else if (OB_FAIL(tablet_schema_index_array.push_back(1))) {
|
||||
STORAGE_LOG(WARN, "failed to push index into array", K(ret));
|
||||
} else if (OB_FAIL(tablet_info.init(tablet_id_array, data_tablet_id, tablet_schema_index_array, lib::Worker::CompatMode::MYSQL, false))) {
|
||||
} else if (OB_FAIL(tablet_info.init(tablet_id_array, data_tablet_id, tablet_schema_index_array, lib::Worker::CompatMode::MYSQL, false, false /*has_cs_replica*/))) {
|
||||
STORAGE_LOG(WARN, "failed to init tablet info", K(ret), K(tablet_id_array),
|
||||
K(data_tablet_id), K(tablet_schema_index_array));
|
||||
} else if (OB_FAIL(arg.init_create_tablet(ls_id, share::SCN::min_scn(), false/*need_check_tablet_cnt*/))) {
|
||||
|
@ -139,7 +139,7 @@ inline int TestTabletHelper::create_tablet(
|
||||
*tablet_handle.get_allocator(),
|
||||
ls_id, tablet_id, tablet_id, share::SCN::base_scn(),
|
||||
snapshot_version, create_tablet_schema, need_create_empty_major_sstable,
|
||||
false/*micro_index_clustered*/, need_generate_cs_replica_cg_array, freezer))){
|
||||
false/*micro_index_clustered*/, need_generate_cs_replica_cg_array, false/*has_cs_replica*/, freezer))){
|
||||
STORAGE_LOG(WARN, "failed to init tablet", K(ret), K(ls_id), K(tablet_id));
|
||||
} else if (ObTabletStatus::Status::MAX != tablet_status) {
|
||||
ObTabletCreateDeleteMdsUserData data;
|
||||
|
Reference in New Issue
Block a user