Commit d857c694 authored by unknown's avatar unknown

srv0srv.c:

  The option (= default) innodb_fast_shutdown did not always make the shutdown quickly, fix that


innobase/srv/srv0srv.c:
  The option (= default) innodb_fast_shutdown did not always make the shutdown quickly, fix that
parent a1e858bf
...@@ -2819,7 +2819,11 @@ background_loop: ...@@ -2819,7 +2819,11 @@ background_loop:
srv_main_thread_op_info = (char*)"purging"; srv_main_thread_op_info = (char*)"purging";
n_pages_purged = trx_purge(); if (srv_fast_shutdown && srv_shutdown_state > 0) {
n_pages_purged = 0;
} else {
n_pages_purged = trx_purge();
}
srv_main_thread_op_info = (char*)"reserving kernel mutex"; srv_main_thread_op_info = (char*)"reserving kernel mutex";
...@@ -2831,7 +2835,12 @@ background_loop: ...@@ -2831,7 +2835,12 @@ background_loop:
mutex_exit(&kernel_mutex); mutex_exit(&kernel_mutex);
srv_main_thread_op_info = (char*)"doing insert buffer merge"; srv_main_thread_op_info = (char*)"doing insert buffer merge";
n_bytes_merged = ibuf_contract_for_n_pages(TRUE, 20);
if (srv_fast_shutdown && srv_shutdown_state > 0) {
n_bytes_merged = 0;
} else {
n_bytes_merged = ibuf_contract_for_n_pages(TRUE, 20);
}
srv_main_thread_op_info = (char*)"reserving kernel mutex"; srv_main_thread_op_info = (char*)"reserving kernel mutex";
......
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