Skip to content

Commit

Permalink
MDEV-20612 fixup: Make comments refer to lock_sys.latch
Browse files Browse the repository at this point in the history
  • Loading branch information
dr-m committed Feb 17, 2021
1 parent 1146e98 commit 584e521
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
3 changes: 1 addition & 2 deletions storage/innobase/include/srv0srv.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions storage/innobase/lock/lock0lock.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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. */
Expand Down
3 changes: 1 addition & 2 deletions storage/innobase/srv/srv0srv.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 584e521

Please sign in to comment.