MySQL 8.0.40
Source Code Documentation
|
#include <pfs_data_lock.h>
Public Member Functions | |
PFS_data_lock_wait_container () | |
~PFS_data_lock_wait_container () override | |
const char * | cache_string (const char *string) override |
const char * | cache_data (const char *ptr, size_t length) override |
bool | accept_engine (const char *engine, size_t engine_length) override |
Check if the container accepts data for a particular engine. More... | |
bool | accept_requesting_lock_id (const char *engine_lock_id, size_t engine_lock_id_length) override |
Check if the container accepts data for a particular requesting lock id. More... | |
bool | accept_blocking_lock_id (const char *engine_lock_id, size_t engine_lock_id_length) override |
Check if the container accepts data for a particular blocking lock id. More... | |
bool | accept_requesting_transaction_id (ulonglong transaction_id) override |
Check if the container accepts data for a particular requesting transaction id. More... | |
bool | accept_blocking_transaction_id (ulonglong transaction_id) override |
Check if the container accepts data for a particular blocking transaction id. More... | |
bool | accept_requesting_thread_id_event_id (ulonglong thread_id, ulonglong event_id) override |
Check if the container accepts data for a particular requesting event. More... | |
bool | accept_blocking_thread_id_event_id (ulonglong thread_id, ulonglong event_id) override |
Check if the container accepts data for a particular blocking event. More... | |
void | add_lock_wait_row (const char *engine, size_t engine_length, const char *requesting_engine_lock_id, size_t requesting_engine_lock_id_length, ulonglong requesting_transaction_id, ulonglong requesting_thread_id, ulonglong requesting_event_id, const void *requesting_identity, const char *blocking_engine_lock_id, size_t blocking_engine_lock_id_length, ulonglong blocking_transaction_id, ulonglong blocking_thread_id, ulonglong blocking_event_id, const void *blocking_identity) override |
Add a row to table performance_schema.data_lock_waits. More... | |
void | clear () |
Clear the container. More... | |
void | shrink () |
Shrink the container. More... | |
row_data_lock_wait * | get_row (size_t index) |
void | set_filter (PFS_index_data_lock_waits *filter) |
Public Member Functions inherited from PSI_server_data_lock_wait_container | |
PSI_server_data_lock_wait_container ()=default | |
virtual | ~PSI_server_data_lock_wait_container ()=default |
Private Attributes | |
size_t | m_logical_row_index |
std::vector< row_data_lock_wait, PFS_data_container_allocator< row_data_lock_wait > > | m_rows |
PFS_data_cache | m_cache |
PFS_index_data_lock_waits * | m_filter |
PFS_data_lock_wait_container::PFS_data_lock_wait_container | ( | ) |
|
overridedefault |
|
overridevirtual |
Check if the container accepts data for a particular blocking lock id.
This methods is used to prune data for queries like
Implements PSI_server_data_lock_wait_container.
|
overridevirtual |
Check if the container accepts data for a particular blocking event.
This methods is used to prune data for queries like
Implements PSI_server_data_lock_wait_container.
|
overridevirtual |
Check if the container accepts data for a particular blocking transaction id.
This methods is used to prune data for queries like
Implements PSI_server_data_lock_wait_container.
|
overridevirtual |
Check if the container accepts data for a particular engine.
This methods is used to prune data for queries like
Implements PSI_server_data_lock_wait_container.
|
overridevirtual |
Check if the container accepts data for a particular requesting lock id.
This methods is used to prune data for queries like
Implements PSI_server_data_lock_wait_container.
|
overridevirtual |
Check if the container accepts data for a particular requesting event.
This methods is used to prune data for queries like
Implements PSI_server_data_lock_wait_container.
|
overridevirtual |
Check if the container accepts data for a particular requesting transaction id.
This methods is used to prune data for queries like
Implements PSI_server_data_lock_wait_container.
|
overridevirtual |
Add a row to table performance_schema.data_lock_waits.
Implements PSI_server_data_lock_wait_container.
|
overridevirtual |
Implements PSI_server_data_lock_wait_container.
|
overridevirtual |
Implements PSI_server_data_lock_wait_container.
void PFS_data_lock_wait_container::clear | ( | ) |
Clear the container.
New rows added will start at index 0.
row_data_lock_wait * PFS_data_lock_wait_container::get_row | ( | size_t | index | ) |
|
inline |
void PFS_data_lock_wait_container::shrink | ( | ) |
Shrink the container.
New rows added will continue to use the current index.
|
private |
|
private |
|
private |
|
private |