diff --git a/src/rootserver/restore/ob_recover_table_job_scheduler.cpp b/src/rootserver/restore/ob_recover_table_job_scheduler.cpp index 947b3b601..8f6cc97b9 100644 --- a/src/rootserver/restore/ob_recover_table_job_scheduler.cpp +++ b/src/rootserver/restore/ob_recover_table_job_scheduler.cpp @@ -670,7 +670,7 @@ int ObRecoverTableJobScheduler::check_aux_tenant_(share::ObRecoverTableJob &job, schema::ObSchemaGetterGuard recover_tenant_guard; bool is_compatible = true; if (OB_FAIL(schema_service_->get_tenant_schema_guard(aux_tenant_id, aux_tenant_guard))) { - if (OB_TENANT_NOT_EXIST) { + if (OB_TENANT_NOT_EXIST == ret) { ObImportResult::Comment comment; if (OB_TMP_FAIL(databuff_printf(comment.ptr(), comment.capacity(), "aux tenant %.*s has been dropped", job.get_aux_tenant_name().length(), job.get_aux_tenant_name().ptr()))) { diff --git a/src/share/backup/ob_archive_persist_helper.cpp b/src/share/backup/ob_archive_persist_helper.cpp index d74e97d98..674da14ad 100644 --- a/src/share/backup/ob_archive_persist_helper.cpp +++ b/src/share/backup/ob_archive_persist_helper.cpp @@ -169,7 +169,7 @@ int ObArchivePersistHelper::lock_archive_dest( int ret = OB_SUCCESS; ObBackupPathString path; if (OB_FAIL(get_archive_dest(trans, true /* need_lock */, dest_no, path))) { - if (OB_ENTRY_NOT_EXIST) { + if (OB_ENTRY_NOT_EXIST == ret) { ret = OB_SUCCESS; is_exist = false; } else { diff --git a/src/storage/restore/ob_ls_restore_handler.cpp b/src/storage/restore/ob_ls_restore_handler.cpp index 48dfafb20..d82aa262e 100644 --- a/src/storage/restore/ob_ls_restore_handler.cpp +++ b/src/storage/restore/ob_ls_restore_handler.cpp @@ -1730,7 +1730,7 @@ int ObLSRestoreStartState::check_ls_meta_exist_(bool &is_exist) } else if (OB_FAIL(store.init(backup_set_array.at(idx).backup_set_path_.ptr()))) { LOG_WARN("fail to init backup data store", K(ret)); } else if (OB_FAIL(store.read_ls_meta_infos(ls_->get_ls_id(), ls_meta_packge))) { - if (OB_ENTRY_NOT_EXIST) { + if (OB_ENTRY_NOT_EXIST == ret) { is_exist = false; ret = OB_SUCCESS; } else {