summaryrefslogtreecommitdiff
path: root/storage/xtradb/log
diff options
context:
space:
mode:
authorMarko Mäkelä <marko.makela@mariadb.com>2018-04-26 22:44:09 +0300
committerMarko Mäkelä <marko.makela@mariadb.com>2018-04-26 22:44:09 +0300
commita1ea8d6f8117179f412799bde1587c210a319b91 (patch)
tree03ea7f20063ede5e1883b7191c70b74795674076 /storage/xtradb/log
parentdc0613edc41590a03a75b5b75e7200c11435ad1a (diff)
downloadmariadb-git-a1ea8d6f8117179f412799bde1587c210a319b91.tar.gz
Follow-up fix to MDEV-14705: Flush log at shutdown
In commit e7f4e61f6e013e8879a64dae3ab0370ec137a121 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.
Diffstat (limited to 'storage/xtradb/log')
-rw-r--r--storage/xtradb/log/log0log.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/storage/xtradb/log/log0log.cc b/storage/xtradb/log/log0log.cc
index cb61e3fb0c6..1420f5a3a12 100644
--- a/storage/xtradb/log/log0log.cc
+++ b/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;
}