add defend for backup to check against medium info

This commit is contained in:
oceanoverflow
2023-03-17 04:13:49 +00:00
committed by ob-robot
parent e029338914
commit 11e7b0738b
9 changed files with 56 additions and 14 deletions

View File

@ -1344,7 +1344,7 @@ int ObAdaptiveMergePolicy::find_meta_major_tables(
}
#ifdef ERRSIM
if (OB_NO_NEED_MERGE = ret) {
if (OB_NO_NEED_MERGE == ret) {
ret = OB_E(EventTable::EN_SCHEDULE_MEDIUM_COMPACTION) ret;
if (OB_FAIL(ret) && tablet.get_tablet_meta().tablet_id_.id() > ObTabletID::MIN_USER_TABLET_ID) {
FLOG_INFO("set schedule medium with errsim", "tablet_id", tablet.get_tablet_meta().tablet_id_);