MySQL 8.0.32
Source Code Documentation
lock_sys_t Struct Reference

The lock system struct. More...

#include <lock0lock.h>

Public Attributes

locksys::Latches latches
 The latches protecting queues of record and table locks. More...
 
hash_table_trec_hash
 The hash table of the record (LOCK_REC) locks, except for predicate (LOCK_PREDICATE) and predicate page (LOCK_PRDT_PAGE) locks. More...
 
hash_table_tprdt_hash
 The hash table of predicate (LOCK_PREDICATE) locks. More...
 
hash_table_tprdt_page_hash
 The hash table of the predicate page (LOCK_PRD_PAGE) locks. More...
 
char pad2 [ut::INNODB_CACHE_LINE_SIZE]
 Padding to avoid false sharing of wait_mutex field. More...
 
Lock_mutex wait_mutex
 The mutex protecting the next two fields. More...
 
srv_slot_twaiting_threads
 Array of user threads suspended while waiting for locks within InnoDB. More...
 
srv_slot_tlast_slot
 The highest slot ever used in the waiting_threads array. More...
 
bool rollback_complete
 true if rollback of all recovered transactions is complete. More...
 
std::chrono::steady_clock::duration n_lock_max_wait_time
 Max lock wait time observed, for innodb_row_lock_time_max reporting. More...
 
os_event_t timeout_event
 Set to the event that is created in the lock wait monitor thread. More...
 
std::atomic< uint64_t > m_seq
 Lock timestamp counter, used to assign lock->m_seq on creation. More...
 

Detailed Description

The lock system struct.

Member Data Documentation

◆ last_slot

srv_slot_t* lock_sys_t::last_slot

The highest slot ever used in the waiting_threads array.

Protected by lock_sys->wait_mutex.

◆ latches

locksys::Latches lock_sys_t::latches

The latches protecting queues of record and table locks.

◆ m_seq

std::atomic<uint64_t> lock_sys_t::m_seq

Lock timestamp counter, used to assign lock->m_seq on creation.

◆ n_lock_max_wait_time

std::chrono::steady_clock::duration lock_sys_t::n_lock_max_wait_time

Max lock wait time observed, for innodb_row_lock_time_max reporting.

◆ pad2

char lock_sys_t::pad2[ut::INNODB_CACHE_LINE_SIZE]

Padding to avoid false sharing of wait_mutex field.

◆ prdt_hash

hash_table_t* lock_sys_t::prdt_hash

The hash table of predicate (LOCK_PREDICATE) locks.

◆ prdt_page_hash

hash_table_t* lock_sys_t::prdt_page_hash

The hash table of the predicate page (LOCK_PRD_PAGE) locks.

◆ rec_hash

hash_table_t* lock_sys_t::rec_hash

The hash table of the record (LOCK_REC) locks, except for predicate (LOCK_PREDICATE) and predicate page (LOCK_PRDT_PAGE) locks.

◆ rollback_complete

bool lock_sys_t::rollback_complete

true if rollback of all recovered transactions is complete.

Protected by exclusive global lock_sys latch.

◆ timeout_event

os_event_t lock_sys_t::timeout_event

Set to the event that is created in the lock wait monitor thread.

A value of 0 means the thread is not active

◆ wait_mutex

Lock_mutex lock_sys_t::wait_mutex

The mutex protecting the next two fields.

◆ waiting_threads

srv_slot_t* lock_sys_t::waiting_threads

Array of user threads suspended while waiting for locks within InnoDB.

Protected by the lock_sys->wait_mutex.


The documentation for this struct was generated from the following file: