[MDS] add mds construct sequence to bind async executed DAG and mds_table

This commit is contained in:
fengdeyiji
2023-08-15 03:10:34 +00:00
committed by ob-robot
parent 9b31f8aa03
commit 6283feb96f
20 changed files with 155 additions and 45 deletions

View File

@ -1393,6 +1393,7 @@ int ObLSTabletService::update_medium_compaction_info(
int ObLSTabletService::build_new_tablet_from_mds_table(
const common::ObTabletID &tablet_id,
const int64_t mds_construct_sequence,
const share::SCN &flush_scn)
{
TIMEGUARD_INIT(STORAGE, 10_ms);
@ -1433,7 +1434,7 @@ int ObLSTabletService::build_new_tablet_from_mds_table(
ObTabletMdsData mds_data;
if (OB_FAIL(ret)) {
} else if (CLICK_FAIL(old_tablet->read_mds_table(arena_allocator, mds_data, true))) {
} else if (CLICK_FAIL(old_tablet->read_mds_table(arena_allocator, mds_data, true, mds_construct_sequence))) {
if (OB_EMPTY_RESULT == ret) {
ret = OB_SUCCESS;
LOG_INFO("read nothing from mds table, no need to build new tablet", K(ret), K(key));