fix alloc_and_init_result bug

This commit is contained in:
obdev 2024-11-23 21:16:16 +00:00 committed by ob-robot
parent 82569599f9
commit 75bd15f4f4

View File

@ -1641,7 +1641,7 @@ int ObTenantIOManager::alloc_and_init_result(const ObIOInfo &info, ObIOResult *&
LOG_WARN("alloc io result failed, retry until timeout", K(ret));
//blocking foreground thread
ret = OB_SUCCESS;
if (OB_FAIL(try_alloc_result_until_timeout(info.timeout_us_, io_result))) {
if (OB_FAIL(try_alloc_result_until_timeout(ObTimeUtility::current_time() + info.timeout_us_, io_result))) {
LOG_WARN("retry alloc io result failed", K(ret));
}
} else {
@ -1704,7 +1704,7 @@ int ObTenantIOManager::alloc_req_and_result(const ObIOInfo &info, ObIOHandle &ha
LOG_WARN("alloc io request failed, retry until timeout", K(ret));
//blocking foreground thread
ret = OB_SUCCESS;
if (OB_FAIL(try_alloc_req_until_timeout(info.timeout_us_, io_request))) {
if (OB_FAIL(try_alloc_req_until_timeout(ObTimeUtility::current_time() + info.timeout_us_, io_request))) {
LOG_WARN("retry alloc io request failed", K(ret));
}
} else {