diff --git a/storage/innobase/include/srv0srv.h b/storage/innobase/include/srv0srv.h index 457e6dfc43533..e201771f2ef83 100644 --- a/storage/innobase/include/srv0srv.h +++ b/storage/innobase/include/srv0srv.h @@ -611,8 +611,7 @@ ibool srv_printf_innodb_monitor( /*======================*/ FILE* file, /*!< in: output stream */ - ibool nowait, /*!< in: whether to wait for the - lock_sys_t::mutex */ + ibool nowait, /*!< in: whether to wait for lock_sys.latch */ ulint* trx_start, /*!< out: file position of the start of the list of active transactions */ ulint* trx_end); /*!< out: file position of the end of diff --git a/storage/innobase/lock/lock0lock.cc b/storage/innobase/lock/lock0lock.cc index 4447ee85ea63a..44b3f5dac9a09 100644 --- a/storage/innobase/lock/lock0lock.cc +++ b/storage/innobase/lock/lock0lock.cc @@ -459,8 +459,8 @@ static bool lock_rec_validate_page(const buf_block_t *block, bool latched) /* The lock system */ lock_sys_t lock_sys; -/** Only created if !srv_read_only_mode */ -static FILE* lock_latest_err_file; +/** Only created if !srv_read_only_mode. Protected by lock_sys.latch. */ +static FILE *lock_latest_err_file; /*********************************************************************//** Reports that a transaction id is insensible, i.e., in the future. */ diff --git a/storage/innobase/srv/srv0srv.cc b/storage/innobase/srv/srv0srv.cc index d75451ce79182..fc49968948ece 100644 --- a/storage/innobase/srv/srv0srv.cc +++ b/storage/innobase/srv/srv0srv.cc @@ -731,8 +731,7 @@ ibool srv_printf_innodb_monitor( /*======================*/ FILE* file, /*!< in: output stream */ - ibool nowait, /*!< in: whether to wait for the - lock_sys_t:: mutex */ + ibool nowait, /*!< in: whether to wait for lock_sys.latch */ ulint* trx_start_pos, /*!< out: file position of the start of the list of active transactions */ ulint* trx_end) /*!< out: file position of the end of