Skip to content
Permalink
Browse files
Follow-up fix to MDEV-14705: Flush log at shutdown
In commit e7f4e61
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.
  • Loading branch information
dr-m committed Apr 26, 2018
1 parent dc0613e commit a1ea8d6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
@@ -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;
}

0 comments on commit a1ea8d6

Please sign in to comment.