Commit 374f94c5 authored by Marko Mäkelä's avatar Marko Mäkelä

MDEV-21751 followup: Bypass the change buffer on slow shutdown

parent d642c5b8
......@@ -2066,8 +2066,14 @@ void innodb_preshutdown()
if (srv_read_only_mode)
return;
if (!srv_fast_shutdown && srv_operation == SRV_OPERATION_NORMAL)
{
/* Because a slow shutdown must empty the change buffer, we had
better prevent any further changes from being buffered. */
innodb_change_buffering= 0;
while (trx_sys.any_active_transactions())
os_thread_sleep(1000);
}
srv_shutdown_bg_undo_sources();
srv_purge_shutdown();
}
......
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