Skip to content

Commit

Permalink
MDEV-21584 - portability fix
Browse files Browse the repository at this point in the history
This patch implements OS_DATA_FILE_NO_O_DIRECT on Windows.
  • Loading branch information
vaintroub authored and dr-m committed Mar 18, 2021
1 parent 14a8b70 commit 00f620b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion storage/innobase/os/os0file.cc
Original file line number Diff line number Diff line change
Expand Up @@ -4305,7 +4305,9 @@ os_file_create_func(

case SRV_ALL_O_DIRECT_FSYNC:
/*Traditional Windows behavior, no buffering for any files.*/
attributes |= FILE_FLAG_NO_BUFFERING;
if (type != OS_DATA_FILE_NO_O_DIRECT) {
attributes |= FILE_FLAG_NO_BUFFERING;
}
break;

case SRV_FSYNC:
Expand Down

0 comments on commit 00f620b

Please sign in to comment.