MySQL 8.0.29
Source Code Documentation
psi_mdl_service.h
Go to the documentation of this file.
1/* Copyright (c) 2017, 2022, Oracle and/or its affiliates.
2
3This program is free software; you can redistribute it and/or modify
4it under the terms of the GNU General Public License, version 2.0,
5as published by the Free Software Foundation.
6
7This program is also distributed with certain software (including
8but not limited to OpenSSL) that is licensed under separate terms,
9as designated in a particular file or component or in included license
10documentation. The authors of MySQL hereby grant you an additional
11permission to link the program and your derivative works with the
12separately licensed software that they have included with MySQL.
13
14This program is distributed in the hope that it will be useful,
15but WITHOUT ANY WARRANTY; without even the implied warranty of
16MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17GNU General Public License, version 2.0, for more details.
18
19You should have received a copy of the GNU General Public License
20along with this program; if not, write to the Free Software
21Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */
22
23#ifndef COMPONENTS_SERVICES_PSI_MDL_SERVICE_H
24#define COMPONENTS_SERVICES_PSI_MDL_SERVICE_H
25
28
29/*
30 Version 1.
31 Introduced in MySQL 8.0.3
32 Deprecated in MySQL 8.0.24
33 Status: Deprecated.
34*/
37set_metadata_lock_status_v1_t set_metadata_lock_status;
39start_metadata_wait_v1_t start_metadata_wait;
40end_metadata_wait_v1_t end_metadata_wait;
42
43/*
44 Version 2.
45 Introduced in MySQL 8.0.24
46 Status: Active.
47*/
50set_metadata_lock_status_v1_t set_metadata_lock_status;
51/* Added in version 2. */
52set_metadata_lock_duration_v2_t set_metadata_lock_duration;
54start_metadata_wait_v1_t start_metadata_wait;
55end_metadata_wait_v1_t end_metadata_wait;
57
58#endif /* COMPONENTS_SERVICES_PSI_MDL_SERVICE_H */
void destroy_metadata_lock(PFS_metadata_lock *pfs)
Definition: pfs_instr.cc:1545
PFS_metadata_lock * create_metadata_lock(void *identity, const MDL_key *mdl_key, opaque_mdl_type mdl_type, opaque_mdl_duration mdl_duration, opaque_mdl_status mdl_status, const char *src_file, uint src_line)
Definition: pfs_instr.cc:1517
void(* destroy_metadata_lock_v1_t)(PSI_metadata_lock *lock)
Definition: psi_mdl_bits.h:96
void(* end_metadata_wait_v1_t)(struct PSI_metadata_locker *locker, int rc)
Definition: psi_mdl_bits.h:102
struct PSI_metadata_locker *(* start_metadata_wait_v1_t)(struct PSI_metadata_locker_state_v1 *state, struct PSI_metadata_lock *mdl, const char *src_file, unsigned int src_line)
Definition: psi_mdl_bits.h:98
void(* set_metadata_lock_status_v1_t)(PSI_metadata_lock *lock, opaque_mdl_status mdl_status)
Definition: psi_mdl_bits.h:90
PSI_metadata_lock *(* create_metadata_lock_v1_t)(void *identity, const struct MDL_key *key, opaque_mdl_type mdl_type, opaque_mdl_duration mdl_duration, opaque_mdl_status mdl_status, const char *src_file, unsigned int src_line)
Definition: psi_mdl_bits.h:85
void(* set_metadata_lock_duration_v2_t)(PSI_metadata_lock *lock, opaque_mdl_duration mdl_duration)
Definition: psi_mdl_bits.h:93
Performance schema instrumentation interface.
#define END_SERVICE_DEFINITION(name)
A macro to end the last Service definition started with the BEGIN_SERVICE_DEFINITION macro.
Definition: service.h:90
#define BEGIN_SERVICE_DEFINITION(name)
Declares a new Service.
Definition: service.h:85