MySQL 8.4.2
Source Code Documentation
|
Inspect data locks for the innodb storage engine. More...
Public Member Functions | |
Innodb_data_lock_iterator () | |
~Innodb_data_lock_iterator () override | |
bool | scan (PSI_server_data_lock_container *container, bool with_lock_data) override |
Scan for more data locks. More... | |
bool | fetch (PSI_server_data_lock_container *container, const char *engine_lock_id, size_t engine_lock_id_length, bool with_lock_data) override |
Fetch a given data lock. More... | |
Public Member Functions inherited from PSI_engine_data_lock_iterator | |
PSI_engine_data_lock_iterator ()=default | |
virtual | ~PSI_engine_data_lock_iterator ()=default |
Private Member Functions | |
template<typename Trx_list > | |
size_t | scan_trx_list (PSI_server_data_lock_container *container, bool with_lock_data, Trx_list *trx_list) |
Scan a trx list. More... | |
size_t | scan_trx (PSI_server_data_lock_container *container, bool with_lock_data, const trx_t *trx, bool with_filter, uint64_t filter_lock_immutable_id=0, ulint filter_heap_id=0) |
Scan a given trx. More... | |
Private Attributes | |
Innodb_trx_scan_state | m_scan_state |
Current scan state. More... | |
Inspect data locks for the innodb storage engine.
|
default |
|
overridedefault |
|
overridevirtual |
Fetch a given data lock.
container | The container to fill |
engine_lock_id | The lock id to search |
engine_lock_id_length | Lock id length |
with_lock_data | True if column LOCK_DATA is required. |
Implements PSI_engine_data_lock_iterator.
|
overridevirtual |
Scan for more data locks.
container | The container to fill |
with_lock_data | True if column LOCK_DATA is required. |
Implements PSI_engine_data_lock_iterator.
|
private |
Scan a given trx.
Either scan all the locks for a transaction, or scan only records matching a given lock.
[in] | container | The container to fill |
[in] | with_lock_data | True if column LOCK_DATA needs to be populated. |
[in] | trx | The trx to scan |
[in] | with_filter | True if looking for a specific record only. |
[in] | filter_lock_immutable_id | Immutable id of lock_t we are looking for |
[in] | filter_heap_id | Heap id to look for, when filtering |
|
private |
Scan a trx list.
[in] | container | The container to fill |
[in] | with_lock_data | True if column LOCK_DATA needs to be populated. |
[in] | trx_list | The trx list to scan |
|
private |
Current scan state.