Commit 30f27b0d authored by Marko Mäkelä's avatar Marko Mäkelä

Post-merge fix for MDEV-11638.

logs_empty_and_mark_files_at_shutdown(): Wait for the log_scrub_thread
to exit.
parent a8ac6dc5
......@@ -2230,7 +2230,7 @@ logs_empty_and_mark_files_at_shutdown(void)
const ulint n_flush = log_sys->n_pending_flushes;
log_mutex_exit();
if (n_write != 0 || n_flush != 0) {
if (log_scrub_thread_active || n_write || n_flush) {
if (srv_print_verbose_log && count > 600) {
ib::info() << "Pending checkpoint_writes: " << n_write
<< ". Pending log flush writes: " << n_flush;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment