Commit 314a14f2 authored by Eugene Kosov's avatar Eugene Kosov

MDEV-18115 redo log is not affected by srv_file_flush_method anymore

parent 3a3605f4
......@@ -1104,13 +1104,6 @@ void log_write_up_to(lsn_t lsn, bool flush_to_disk, bool rotate_key)
srv_stats.log_padded.add(pad_size);
log_sys.write_lsn = write_lsn;
if (srv_file_flush_method == SRV_O_DSYNC) {
/* O_SYNC means the OS did not buffer the log file at all:
so we have also flushed to disk what we have written */
log_sys.flushed_to_disk_lsn = log_sys.write_lsn;
}
log_write_mutex_exit();
if (flush_to_disk) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment