direct_insert_mgr should not read empty shell when in calc range

This commit is contained in:
AnimationFan 2024-06-24 05:34:49 +00:00 committed by ob-robot
parent 26fdcdafba
commit 782576de45

View File

@ -1810,7 +1810,7 @@ int ObTabletDirectLoadMgr::calc_range(const int64_t thread_cnt)
} else if (OB_FAIL(ObDDLUtil::ddl_get_tablet(ls_handle,
tablet_id_,
tablet_handle,
ObMDSGetTabletMode::READ_WITHOUT_CHECK))) {
ObMDSGetTabletMode::READ_ALL_COMMITED))) {
LOG_WARN("get tablet handle failed", K(ret), K(tablet_id_));
} else if (OB_FAIL(sorted_slices.reserve(sqc_build_ctx_.slice_mgr_map_.size()))) {
LOG_WARN("reserve slice array failed", K(ret), K(sqc_build_ctx_.slice_mgr_map_.size()));