Commit 59abcd44 authored by unknown's avatar unknown

srv0srv.c:

  srv_lock_timeout_and_monitor_thread(): write to srv_monitor_file
  only if --innodb_status_file=1


innobase/srv/srv0srv.c:
  srv_lock_timeout_and_monitor_thread(): write to srv_monitor_file
  only if --innodb_status_file=1
parent 60af9206
...@@ -1617,11 +1617,13 @@ loop: ...@@ -1617,11 +1617,13 @@ loop:
srv_printf_innodb_monitor(stderr); srv_printf_innodb_monitor(stderr);
} }
mutex_enter(&srv_monitor_file_mutex); if (srv_innodb_status) {
rewind(srv_monitor_file); mutex_enter(&srv_monitor_file_mutex);
srv_printf_innodb_monitor(srv_monitor_file); rewind(srv_monitor_file);
os_file_set_eof(srv_monitor_file); srv_printf_innodb_monitor(srv_monitor_file);
mutex_exit(&srv_monitor_file_mutex); os_file_set_eof(srv_monitor_file);
mutex_exit(&srv_monitor_file_mutex);
}
if (srv_print_innodb_tablespace_monitor if (srv_print_innodb_tablespace_monitor
&& difftime(current_time, last_table_monitor_time) > 60) { && difftime(current_time, last_table_monitor_time) > 60) {
......
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