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

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

In the merge of commit e7f4e61f
the call fil_flush_file_spaces(FIL_TYPE_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 5569b3eb
...@@ -2104,6 +2104,9 @@ logs_empty_and_mark_files_at_shutdown(void) ...@@ -2104,6 +2104,9 @@ logs_empty_and_mark_files_at_shutdown(void)
goto loop; goto loop;
} }
/* Ensure that all buffered changes are written to the
redo log before fil_close_all_files(). */
fil_flush_file_spaces(FIL_TYPE_LOG);
} else { } else {
lsn = srv_start_lsn; 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