Browse Source

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

In commit e7f4e61f6e
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.
pull/732/head
Marko Mäkelä 8 years ago
parent
commit
a1ea8d6f81
  1. 3
      storage/innobase/log/log0log.cc
  2. 3
      storage/xtradb/log/log0log.cc

3
storage/innobase/log/log0log.cc

@ -3463,6 +3463,9 @@ wait_suspend_loop:
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;
}

3
storage/xtradb/log/log0log.cc

@ -3780,6 +3780,9 @@ wait_suspend_loop:
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;
}

Loading…
Cancel
Save