MySQL 8.0.40
Source Code Documentation
|
InnoDB performance_schema tables interface to MySQL. More...
#include "storage/innobase/handler/p_s.h"
#include <type_traits>
#include "dict0dd.h"
#include "lock0iter.h"
#include "lock0lock.h"
#include "sql_table.h"
#include "trx0i_s.h"
Classes | |
struct | anonymous_namespace{p_s.cc}::parsed_table_path |
class | Innodb_data_lock_iterator |
Inspect data locks for the innodb storage engine. More... | |
class | Innodb_data_lock_wait_iterator |
Inspect data lock waits for the innodb storage engine. More... | |
Namespaces | |
namespace | anonymous_namespace{p_s.cc} |
Functions | |
template<typename F > | |
static void | find_lock_and_execute (const char *engine_lock_id, F &&f) |
Searches for the lock_t object which has the specified engine_lock_id (. More... | |
std::string_view | anonymous_namespace{p_s.cc}::alloc_identifier (PSI_server_data_lock_container *container, PSI_identifier kind, const std::string &id_str) |
Allocate identifier in performance schema container. More... | |
parsed_table_path | anonymous_namespace{p_s.cc}::parse_table_path (PSI_server_data_lock_container *container, const char *table_path) |
Parse a table path string. More... | |
static void | print_table_lock_id (const lock_t &lock, char *lock_id, size_t lock_id_size) |
Print a table lock id. More... | |
static void | print_record_lock_id (const lock_t &lock, ulint heap_no, char *lock_id, size_t lock_id_size) |
Print a record lock id. More... | |
static void | print_lock_id (const lock_t &lock, ulint heap_no, char *lock_id, size_t lock_id_size) |
Print a lock id. More... | |
Variables | |
static const char * | g_engine = "INNODB" |
static const size_t | g_engine_length = 6 |
InnoDB performance_schema tables interface to MySQL.
|
static |
Searches for the lock_t object which has the specified engine_lock_id (.
[in] | engine_lock_id | The string used in ENGINE_LOCK_ID column to uniquely identify the lock request. |
[in] | f | A callable, for which f(lock, type, heap_no) will be executed, if lock with specified engine_lock_id exists. |
|
static |
Print a lock id.
[in] | lock | The lock to print |
[in] | heap_no | Lock heap number if lock's type is LOCK_REC, ignored otherwise. |
[in,out] | lock_id | Printing buffer |
[in] | lock_id_size | Printing buffer length |
|
static |
Print a record lock id.
[in] | lock | The lock to print |
[in] | heap_no | Lock heap number |
[in,out] | lock_id | Printing buffer |
[in] | lock_id_size | Printing buffer length |
|
static |
Print a table lock id.
[in] | lock | The lock to print |
[in,out] | lock_id | Printing buffer |
[in] | lock_id_size | Printing buffer length |
|
static |
|
static |