mirror of
https://github.com/MariaDB/server.git
synced 2025-01-19 05:22:25 +01:00
srv0srv.c:
srv_lock_timeout_and_monitor_thread(): write to srv_monitor_file only if --innodb_status_file=1
This commit is contained in:
parent
eb304bd49f
commit
d58c186759
1 changed files with 7 additions and 5 deletions
|
@ -1617,11 +1617,13 @@ loop:
|
|||
srv_printf_innodb_monitor(stderr);
|
||||
}
|
||||
|
||||
if (srv_innodb_status) {
|
||||
mutex_enter(&srv_monitor_file_mutex);
|
||||
rewind(srv_monitor_file);
|
||||
srv_printf_innodb_monitor(srv_monitor_file);
|
||||
os_file_set_eof(srv_monitor_file);
|
||||
mutex_exit(&srv_monitor_file_mutex);
|
||||
}
|
||||
|
||||
if (srv_print_innodb_tablespace_monitor
|
||||
&& difftime(current_time, last_table_monitor_time) > 60) {
|
||||
|
|
Loading…
Reference in a new issue