From 7ec97aa32015a13b22d334150b809bf2181ea11f Mon Sep 17 00:00:00 2001 From: obdev Date: Mon, 6 Feb 2023 14:56:34 +0800 Subject: [PATCH] Fix compile error in ERRSIM mode --- src/logservice/restoreservice/ob_remote_log_iterator.ipp | 2 +- src/sql/das/ob_data_access_service.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/logservice/restoreservice/ob_remote_log_iterator.ipp b/src/logservice/restoreservice/ob_remote_log_iterator.ipp index b2f2c15217..f416817a5d 100644 --- a/src/logservice/restoreservice/ob_remote_log_iterator.ipp +++ b/src/logservice/restoreservice/ob_remote_log_iterator.ipp @@ -101,7 +101,7 @@ int ObRemoteLogIterator::next(LogEntryType &entry, LSN &lsn, const #ifdef ERRSIM if (OB_SUCC(ret)) { - ret = E(EventTable::EN_RESTORE_LOG_FROM_SOURCE_FAILED) OB_SUCCESS; + ret = OB_E(EventTable::EN_RESTORE_LOG_FROM_SOURCE_FAILED) OB_SUCCESS; } #endif return ret; diff --git a/src/sql/das/ob_data_access_service.cpp b/src/sql/das/ob_data_access_service.cpp index d117119e1e..63f03a6dcd 100644 --- a/src/sql/das/ob_data_access_service.cpp +++ b/src/sql/das/ob_data_access_service.cpp @@ -380,7 +380,7 @@ int ObDataAccessService::do_async_remote_das_task( ObPhysicalPlanCtx *plan_ctx = das_ref.get_exec_ctx().get_physical_plan_ctx(); int64_t timeout = plan_ctx->get_timeout_timestamp() - ObTimeUtility::current_time(); #ifdef ERRSIM - int inject_timeout = -E(EventTable::EN_DAS_SIMULATE_ASYNC_RPC_TIMEOUT) OB_SUCCESS; + int inject_timeout = -OB_E(EventTable::EN_DAS_SIMULATE_ASYNC_RPC_TIMEOUT) OB_SUCCESS; if (OB_SUCCESS != inject_timeout) { LOG_INFO("das async rpc simulate timeout", K(inject_timeout)); timeout = inject_timeout - 10; -- GitLab