Commit 588b0332 authored by Vladislav Vaintroub's avatar Vladislav Vaintroub

Add error logging for aio error on Windows

parent 7c6037ce
......@@ -7366,10 +7366,20 @@ os_aio_windows_handler(
srv_set_io_thread_op_info(orig_seg, "wait Windows aio");
}
DWORD handle_count = (DWORD)array->slots_per_segment();
HANDLE *handle_array = array->handles(segment);
pos = WaitForMultipleObjects(
(DWORD) array->slots_per_segment(),
array->handles(segment),
handle_count,
handle_array,
FALSE, INFINITE);
if (pos == WAIT_FAILED) {
DWORD last_error = GetLastError();
ib::error()
<< "WaitForMultipleObjects() failed with error "
<< last_error;
ut_error;
}
}
array->acquire();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment