37#if defined(MYSQL_SERVER) || defined(PFS_DIRECT_CALL)
42#ifndef PSI_METADATA_CALL
43#define PSI_METADATA_CALL(M) psi_mdl_service->M
64#ifdef HAVE_PSI_METADATA_INTERFACE
65#define mysql_mdl_create(I, K, T, D, S, F, L) \
66 inline_mysql_mdl_create(I, K, T, D, S, F, L)
68#define mysql_mdl_create(I, K, T, D, S, F, L) NULL
71#ifdef HAVE_PSI_METADATA_INTERFACE
72#define mysql_mdl_set_status(L, S) inline_mysql_mdl_set_status(L, S)
74#define mysql_mdl_set_status(L, S) \
79#ifdef HAVE_PSI_METADATA_INTERFACE
80#define mysql_mdl_set_duration(L, D) inline_mysql_mdl_set_duration(L, D)
82#define mysql_mdl_set_duration(L, D) \
92#ifdef HAVE_PSI_METADATA_INTERFACE
93#define mysql_mdl_destroy(M) inline_mysql_mdl_destroy(M, __FILE__, __LINE__)
95#define mysql_mdl_destroy(M) \
100#ifdef HAVE_PSI_METADATA_INTERFACE
105 const char *src_file, uint src_line) {
119 if (psi !=
nullptr) {
126 if (psi !=
nullptr) {
132 const char *, uint) {
133 if (psi !=
nullptr) {
enum_psi_status
Status of lock request represented by the ticket as reflected in P_S.
Definition: mdl.h:1032
int opaque_mdl_duration
Definition: psi_mdl_bits.h:42
int opaque_mdl_status
Definition: psi_mdl_bits.h:45
int opaque_mdl_type
Definition: psi_mdl_bits.h:36
struct PSI_metadata_lock PSI_metadata_lock
Definition: psi_mdl_bits.h:52
static void inline_mysql_mdl_destroy(PSI_metadata_lock *psi, const char *, uint)
Definition: mysql_mdl.h:131
static void inline_mysql_mdl_set_duration(PSI_metadata_lock *psi, enum_mdl_duration mdl_duration)
Definition: mysql_mdl.h:124
static PSI_metadata_lock * inline_mysql_mdl_create(void *identity, const MDL_key *mdl_key, enum_mdl_type mdl_type, enum_mdl_duration mdl_duration, MDL_ticket::enum_psi_status mdl_status, const char *src_file, uint src_line)
Definition: mysql_mdl.h:102
static void inline_mysql_mdl_set_status(PSI_metadata_lock *psi, MDL_ticket::enum_psi_status mdl_status)
Definition: mysql_mdl.h:117
enum_mdl_duration
Duration of metadata lock.
Definition: mdl.h:333
Defines various enable/disable and HAVE_ macros related to the performance schema instrumentation sys...
struct result result
Definition: result.h:34
Performance schema instrumentation interface.
enum_mdl_type
Type of metadata lock request.
Definition: sql_lexer_yacc_state.h:106
Metadata lock object key.
Definition: mdl.h:365