[manually cp] reset errno from OB_ENTRY_NOT_EXIST to OB_TABLET_NOT_EXIST in mds table merge procedure

This commit is contained in:
hiddenbomb
2024-02-08 22:43:31 +00:00
committed by ob-robot
parent fd37b45d42
commit 5e9a933f2b

View File

@ -1325,7 +1325,11 @@ int ObLSTabletService::build_new_tablet_from_mds_table(
ret = OB_INVALID_ARGUMENT;
LOG_WARN("invalid args", K(ret), K(tablet_id));
} else if (OB_FAIL(ObTabletCreateDeleteHelper::acquire_tmp_tablet(key, allocator, tmp_tablet_hdl))) {
LOG_WARN("failed to acquire tablet", K(ret), K(key));
if (OB_ENTRY_NOT_EXIST == ret) {
ret = OB_TABLET_NOT_EXIST;
} else {
LOG_WARN("fail to acquire temporary tablet", K(ret), K(key));
}
} else {
time_guard.click("Acquire");
ObTablet *tmp_tablet = tmp_tablet_hdl.get_obj();