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

In the merge of commit e7f4e61f6e013e8879a64dae3ab0370ec137a121
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.
This commit is contained in:
Marko Mäkelä 2018-04-26 22:46:39 +03:00
parent 5569b3eb09
commit b4c5e4a717

View File

@ -2104,6 +2104,9 @@ wait_suspend_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 {
lsn = srv_start_lsn;
}