Commit 00f620b2 authored by Vladislav Vaintroub's avatar Vladislav Vaintroub Committed by Marko Mäkelä

MDEV-21584 - portability fix

This patch implements OS_DATA_FILE_NO_O_DIRECT on Windows.
parent 14a8b700
...@@ -4305,7 +4305,9 @@ os_file_create_func( ...@@ -4305,7 +4305,9 @@ os_file_create_func(
case SRV_ALL_O_DIRECT_FSYNC: case SRV_ALL_O_DIRECT_FSYNC:
/*Traditional Windows behavior, no buffering for any files.*/ /*Traditional Windows behavior, no buffering for any files.*/
if (type != OS_DATA_FILE_NO_O_DIRECT) {
attributes |= FILE_FLAG_NO_BUFFERING; attributes |= FILE_FLAG_NO_BUFFERING;
}
break; break;
case SRV_FSYNC: case SRV_FSYNC:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment