mirror of
https://github.com/MariaDB/server.git
synced 2025-11-09 11:41:36 +03:00
This patch removes unnecessary and potentially performance affecting
reads of my_disable_sync global variable, which exists for single purpose
of speeding up mtr tests, by making fsync a no-op.
The read is still left in its proper location in os_file_flush_func().
Background
According to Marko Mäkelä, the removed code originated from the porting
of MDEV-30054 — debug-no-sync doesn’t fully disable sync calls,
introduced in merge commit be24e75229.
At that point, the access to my_disable_sync variable in higher-level
Innodb code was already unnecessary because MDEV-30136 had already
implemented proper handling of flush skipping (in os0file.cc) about nine
months earlier.