Commit a1ea8d6f authored by Marko Mäkelä's avatar Marko Mäkelä

Follow-up fix to MDEV-14705: Flush log at shutdown

In commit e7f4e61f
the call fil_flush_file_spaces(FIL_LOG) is necessary.
Tablespaces will be flushed as part of the redo log
checkpoint, but the redo log will not necessarily
be flushed, depending on innodb_flush_method.
parent dc0613ed
......@@ -3463,6 +3463,9 @@ logs_empty_and_mark_files_at_shutdown(void)
mutex_exit(&log_sys->mutex);
/* Ensure that all buffered changes are written to the
redo log before fil_close_all_files(). */
fil_flush_file_spaces(FIL_LOG);
} else {
lsn = srv_start_lsn;
}
......
......@@ -3780,6 +3780,9 @@ logs_empty_and_mark_files_at_shutdown(void)
mutex_exit(&log_sys->mutex);
/* Ensure that all buffered changes are written to the
redo log before fil_close_all_files(). */
fil_flush_file_spaces(FIL_LOG);
} else {
lsn = srv_start_lsn;
}
......
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