MySQL 8.0.39
Source Code Documentation
|
Inspect data lock waits for the innodb storage engine. More...
Public Member Functions | |
Innodb_data_lock_wait_iterator ()=default | |
~Innodb_data_lock_wait_iterator () override=default | |
bool | scan (PSI_server_data_lock_wait_container *container) override |
Scan for more data lock waits. More... | |
bool | fetch (PSI_server_data_lock_wait_container *container, const char *requesting_engine_lock_id, size_t requesting_engine_lock_id_length, const char *blocking_engine_lock_id, size_t blocking_engine_lock_id_length) override |
Fetch a given data lock wait. More... | |
Public Member Functions inherited from PSI_engine_data_lock_wait_iterator | |
PSI_engine_data_lock_wait_iterator ()=default | |
virtual | ~PSI_engine_data_lock_wait_iterator ()=default |
Private Member Functions | |
template<typename Trx_list > | |
size_t | scan_trx_list (PSI_server_data_lock_wait_container *container, Trx_list *trx_list) |
Scan a given transaction list. More... | |
size_t | scan_trx (PSI_server_data_lock_wait_container *container, const trx_t *trx, bool with_filter, uint64_t filter_requesting_lock_immutable_id=0, uint64_t filter_blocking_lock_immutable_id=0) |
Scan a given transaction. More... | |
Private Attributes | |
Innodb_trx_scan_state | m_scan_state |
Current scan state. More... | |
Inspect data lock waits for the innodb storage engine.
|
default |
|
overridedefault |
|
overridevirtual |
Fetch a given data lock wait.
container | The container to fill |
requesting_engine_lock_id | The requesting lock id to search |
requesting_engine_lock_id_length | The requesting lock id length |
blocking_engine_lock_id | The blocking lock id to search |
blocking_engine_lock_id_length | The blocking lock id length |
Implements PSI_engine_data_lock_wait_iterator.
|
overridevirtual |
Scan for more data lock waits.
container | The container to fill |
Implements PSI_engine_data_lock_wait_iterator.
|
private |
Scan a given transaction.
Either scan all the waits for a transaction, or scan only records matching a given wait.
[in] | container | The container to fill |
[in] | trx | The trx to scan |
[in] | with_filter | True if looking for a given wait only. |
[in] | filter_requesting_lock_immutable_id | Immutable id of lock_t for the requesting lock, when filtering |
[in] | filter_blocking_lock_immutable_id | Immutable idof lock_t for the blocking lock, when filtering |
|
private |
Scan a given transaction list.
[in] | container | The container to fill |
[in] | trx_list | The trx list to scan |
|
private |
Current scan state.