Skip to content

Commit 584e521

Browse files
committed
MDEV-20612 fixup: Make comments refer to lock_sys.latch
1 parent 1146e98 commit 584e521

File tree

3 files changed

+4
-6
lines changed

3 files changed

+4
-6
lines changed

storage/innobase/include/srv0srv.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -611,8 +611,7 @@ ibool
611611
srv_printf_innodb_monitor(
612612
/*======================*/
613613
FILE* file, /*!< in: output stream */
614-
ibool nowait, /*!< in: whether to wait for the
615-
lock_sys_t::mutex */
614+
ibool nowait, /*!< in: whether to wait for lock_sys.latch */
616615
ulint* trx_start, /*!< out: file position of the start of
617616
the list of active transactions */
618617
ulint* trx_end); /*!< out: file position of the end of

storage/innobase/lock/lock0lock.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -459,8 +459,8 @@ static bool lock_rec_validate_page(const buf_block_t *block, bool latched)
459459
/* The lock system */
460460
lock_sys_t lock_sys;
461461

462-
/** Only created if !srv_read_only_mode */
463-
static FILE* lock_latest_err_file;
462+
/** Only created if !srv_read_only_mode. Protected by lock_sys.latch. */
463+
static FILE *lock_latest_err_file;
464464

465465
/*********************************************************************//**
466466
Reports that a transaction id is insensible, i.e., in the future. */

storage/innobase/srv/srv0srv.cc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -731,8 +731,7 @@ ibool
731731
srv_printf_innodb_monitor(
732732
/*======================*/
733733
FILE* file, /*!< in: output stream */
734-
ibool nowait, /*!< in: whether to wait for the
735-
lock_sys_t:: mutex */
734+
ibool nowait, /*!< in: whether to wait for lock_sys.latch */
736735
ulint* trx_start_pos, /*!< out: file position of the start of
737736
the list of active transactions */
738737
ulint* trx_end) /*!< out: file position of the end of

0 commit comments

Comments
 (0)