Browse Source
MDEV-22177 more fsync() -> fdatasync() in InnoDB
MDEV-22177 more fsync() -> fdatasync() in InnoDB
Replace all fsync() with fdatasync() when possible (e.g. On Linux) InnoDB doesn't care about file timestamps. So, to achieve a better performance it makes sense to use fdatasync() everywhere. file_io::flush(): renamed from flush_data_only() os_file_flush_data(): removed os_file_sync_posix(): renamed from os_file_fsync_posix(). Now it uses fdatasync() when it's available.pull/1516/head
6 changed files with 57 additions and 109 deletions
-
2storage/innobase/handler/ha_innodb.cc
-
12storage/innobase/include/log0log.h
-
24storage/innobase/include/os0file.h
-
24storage/innobase/log/log0log.cc
-
102storage/innobase/os/os0file.cc
-
2storage/innobase/srv/srv0start.cc
Write
Preview
Loading…
Cancel
Save
Reference in new issue