MDEV-21584 - portability fix

This patch implements OS_DATA_FILE_NO_O_DIRECT on Windows.
This commit is contained in:
Vladislav Vaintroub 2021-03-17 12:12:10 +01:00 committed by Marko Mäkelä
parent 14a8b700f3
commit 00f620b27e

View File

@ -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: