mirror of
https://github.com/MariaDB/server.git
synced 2025-01-20 05:52:27 +01:00
Add error logging for aio error on Windows
This commit is contained in:
parent
7c6037ceda
commit
588b03328d
1 changed files with 12 additions and 2 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue