[CP] fix incorrect tablet_id of lob aux table schame in partition table

This commit is contained in:
shadowao
2024-08-19 06:51:20 +00:00
committed by ob-robot
parent 445002cafa
commit 3ede8a0f8c
2 changed files with 8 additions and 0 deletions

View File

@ -123,6 +123,10 @@ int ObLobMetaBuilder::set_basic_infos(
aux_lob_meta_schema.set_table_type(AUX_LOB_META);
aux_lob_meta_schema.set_data_table_id(data_schema.get_table_id());
// reset tablet id to zero
// real tablet id will be generated by generate_tablet_id according to partition info
aux_lob_meta_schema.set_tablet_id(0);
// priority same with data table schema
aux_lob_meta_schema.set_tenant_id(data_schema.get_tenant_id());
aux_lob_meta_schema.set_database_id(data_schema.get_database_id());

View File

@ -122,6 +122,10 @@ int ObLobPieceBuilder::set_basic_infos(
int ret = OB_SUCCESS;
aux_lob_piece_schema.set_data_table_id(data_schema.get_table_id());
// reset tablet id to zero
// real tablet id will be generated by generate_tablet_id according to partition info
aux_lob_piece_schema.set_tablet_id(0);
// priority same with data table schema
aux_lob_piece_schema.set_tenant_id(data_schema.get_tenant_id());
aux_lob_piece_schema.set_database_id(data_schema.get_database_id());