Fix direct load handle task result swallow error code

This commit is contained in:
obdev
2023-03-21 15:01:14 +00:00
committed by ob-robot
parent ece0db78c9
commit 8462b71fa9

View File

@ -1241,7 +1241,7 @@ int ObLoadDataDirectImpl::FileLoadExecutor::handle_all_task_result()
{
int ret = OB_SUCCESS;
TaskHandle *handle = nullptr;
while (handle_reserve_queue_.count() > 0) {
while (OB_SUCC(ret) && handle_reserve_queue_.count() > 0) {
if (OB_FAIL(handle_reserve_queue_.pop(handle))) {
LOG_WARN("fail to pop handle", KR(ret));
} else if (OB_ISNULL(handle)) {