diff options
author | Vladislav Vaintroub <wlad@mariadb.com> | 2021-03-17 12:12:10 +0100 |
---|---|---|
committer | Marko Mäkelä <marko.makela@mariadb.com> | 2021-03-18 12:24:35 +0200 |
commit | 00f620b27e960c4b96a8392b27742fd5e41a69e3 (patch) | |
tree | 00876e175671e47cbb123a21f1e62ba33b98c30e /storage/innobase | |
parent | 14a8b700f3e031700bd49dec8f2dca0ae1786090 (diff) | |
download | mariadb-git-00f620b27e960c4b96a8392b27742fd5e41a69e3.tar.gz |
MDEV-21584 - portability fix
This patch implements OS_DATA_FILE_NO_O_DIRECT on Windows.
Diffstat (limited to 'storage/innobase')
-rw-r--r-- | storage/innobase/os/os0file.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/storage/innobase/os/os0file.cc b/storage/innobase/os/os0file.cc index 17a565c8db2..d2d5769d85e 100644 --- a/storage/innobase/os/os0file.cc +++ b/storage/innobase/os/os0file.cc @@ -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: |