summaryrefslogtreecommitdiff
path: root/storage/innobase/log/log0log.cc
diff options
context:
space:
mode:
authorMarko Mäkelä <marko.makela@mariadb.com>2018-04-26 22:46:39 +0300
committerMarko Mäkelä <marko.makela@mariadb.com>2018-04-26 22:46:39 +0300
commitb4c5e4a717e3ce2c2d434106cc74417fe9a1d3dc (patch)
tree40e885b809c598784ea9a6c245163380f190b458 /storage/innobase/log/log0log.cc
parent5569b3eb091d54664c75f13564510daa74c56288 (diff)
downloadmariadb-git-b4c5e4a717e3ce2c2d434106cc74417fe9a1d3dc.tar.gz
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.
Diffstat (limited to 'storage/innobase/log/log0log.cc')
-rw-r--r--storage/innobase/log/log0log.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/storage/innobase/log/log0log.cc b/storage/innobase/log/log0log.cc
index 4e3722391b3..5eb7054be72 100644
--- a/storage/innobase/log/log0log.cc
+++ b/storage/innobase/log/log0log.cc
@@ -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;
}