Add error logging for aio error on Windows

This commit is contained in:
Vladislav Vaintroub 2016-09-13 21:55:21 +00:00
parent 7c6037ceda
commit 588b03328d

View file

@ -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();