Fix compile error in ERRSIM mode
This commit is contained in:
parent
51fa5ba077
commit
7ec97aa320
@ -101,7 +101,7 @@ int ObRemoteLogIterator<LogEntryType>::next(LogEntryType &entry, LSN &lsn, const
|
|||||||
|
|
||||||
#ifdef ERRSIM
|
#ifdef ERRSIM
|
||||||
if (OB_SUCC(ret)) {
|
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
|
#endif
|
||||||
return ret;
|
return ret;
|
||||||
|
@ -380,7 +380,7 @@ int ObDataAccessService::do_async_remote_das_task(
|
|||||||
ObPhysicalPlanCtx *plan_ctx = das_ref.get_exec_ctx().get_physical_plan_ctx();
|
ObPhysicalPlanCtx *plan_ctx = das_ref.get_exec_ctx().get_physical_plan_ctx();
|
||||||
int64_t timeout = plan_ctx->get_timeout_timestamp() - ObTimeUtility::current_time();
|
int64_t timeout = plan_ctx->get_timeout_timestamp() - ObTimeUtility::current_time();
|
||||||
#ifdef ERRSIM
|
#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) {
|
if (OB_SUCCESS != inject_timeout) {
|
||||||
LOG_INFO("das async rpc simulate timeout", K(inject_timeout));
|
LOG_INFO("das async rpc simulate timeout", K(inject_timeout));
|
||||||
timeout = inject_timeout - 10;
|
timeout = inject_timeout - 10;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user