We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7c6037c commit 588b033Copy full SHA for 588b033
storage/innobase/os/os0file.cc
@@ -7366,10 +7366,20 @@ os_aio_windows_handler(
7366
srv_set_io_thread_op_info(orig_seg, "wait Windows aio");
7367
}
7368
7369
+ DWORD handle_count = (DWORD)array->slots_per_segment();
7370
+ HANDLE *handle_array = array->handles(segment);
7371
pos = WaitForMultipleObjects(
- (DWORD) array->slots_per_segment(),
- array->handles(segment),
7372
+ handle_count,
7373
+ handle_array,
7374
FALSE, INFINITE);
7375
+ if (pos == WAIT_FAILED) {
7376
+ DWORD last_error = GetLastError();
7377
+ ib::error()
7378
+ << "WaitForMultipleObjects() failed with error "
7379
+ << last_error;
7380
+ ut_error;
7381
+
7382
+ }
7383
7384
7385
array->acquire();
0 commit comments