summaryrefslogtreecommitdiff
path: root/storage/innobase/os/os0file.cc
diff options
context:
space:
mode:
Diffstat (limited to 'storage/innobase/os/os0file.cc')
-rw-r--r--storage/innobase/os/os0file.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/storage/innobase/os/os0file.cc b/storage/innobase/os/os0file.cc
index 415604158f6..9b198234281 100644
--- a/storage/innobase/os/os0file.cc
+++ b/storage/innobase/os/os0file.cc
@@ -2141,7 +2141,7 @@ os_file_create_func(
if (log_sys.log_write_through)
attributes|= FILE_FLAG_WRITE_THROUGH;
} else {
- if (type == OS_DATA_FILE && !fil_system.unbuffered)
+ if (!fil_system.buffered && type != OS_DATA_FILE_NO_O_DIRECT)
attributes|= FILE_FLAG_NO_BUFFERING;
if (fil_system.write_through)
attributes|= FILE_FLAG_WRITE_THROUGH;