Skip to content

Commit

Permalink
Fix windows compilation in xtradb post-merge
Browse files Browse the repository at this point in the history
  • Loading branch information
cvicentiu committed May 17, 2017
1 parent 3670d16 commit 8b0db08
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions storage/xtradb/os/os0file.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1859,17 +1859,17 @@ os_file_create_func(
*success = TRUE;
retry = FALSE;
if (srv_use_native_aio && ((attributes & FILE_FLAG_OVERLAPPED) != 0)) {
ut_a(CreateIoCompletionPort(file, completion_port, 0, 0));
ut_a(CreateIoCompletionPort(file.m_file, completion_port, 0, 0));
}
}

} while (retry);

if (srv_use_atomic_writes && type == OS_DATA_FILE &&
!os_file_set_atomic_writes(name, file)) {
CloseHandle(file);
!os_file_set_atomic_writes(name, file.m_file)) {
CloseHandle(file.m_file);
*success = FALSE;
file = INVALID_HANDLE_VALUE;
file.m_file = INVALID_HANDLE_VALUE;
}

#else /* __WIN__ */
Expand Down Expand Up @@ -5040,7 +5040,7 @@ os_aio_windows_handle(

switch (slot->type) {
case OS_FILE_WRITE:
ret_val = os_file_write(slot->name, slot->file.m_file, slot->buf,
ret_val = os_file_write(slot->name, slot->file, slot->buf,
li.QuadPart, slot->len);
break;
case OS_FILE_READ:
Expand Down

0 comments on commit 8b0db08

Please sign in to comment.