diff --git a/src/rootserver/ob_lob_meta_builder.cpp b/src/rootserver/ob_lob_meta_builder.cpp index ebb0523ab7..9d9ffb0b0b 100644 --- a/src/rootserver/ob_lob_meta_builder.cpp +++ b/src/rootserver/ob_lob_meta_builder.cpp @@ -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()); diff --git a/src/rootserver/ob_lob_piece_builder.cpp b/src/rootserver/ob_lob_piece_builder.cpp index be95ee2e77..a12e34a4c7 100644 --- a/src/rootserver/ob_lob_piece_builder.cpp +++ b/src/rootserver/ob_lob_piece_builder.cpp @@ -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());