MySQL 9.1.0
Source Code Documentation
psi_mdl_service.h
Go to the documentation of this file.
1/* Copyright (c) 2017, 2024, 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 designed to work 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 either included with
13the program or referenced in the documentation.
14
15This program is distributed in the hope that it will be useful,
16but WITHOUT ANY WARRANTY; without even the implied warranty of
17MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18GNU General Public License, version 2.0, for more details.
19
20You should have received a copy of the GNU General Public License
21along with this program; if not, write to the Free Software
22Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */
23
24#ifndef COMPONENTS_SERVICES_PSI_MDL_SERVICE_H
25#define COMPONENTS_SERVICES_PSI_MDL_SERVICE_H
26
29
30/*
31 Version 1.
32 Introduced in MySQL 8.0.3
33 Deprecated in MySQL 8.0.24
34 Status: Deprecated.
35*/
38set_metadata_lock_status_v1_t set_metadata_lock_status;
40start_metadata_wait_v1_t start_metadata_wait;
41end_metadata_wait_v1_t end_metadata_wait;
43
44/*
45 Version 2.
46 Introduced in MySQL 8.0.24
47 Status: Active.
48*/
51set_metadata_lock_status_v1_t set_metadata_lock_status;
52/* Added in version 2. */
53set_metadata_lock_duration_v2_t set_metadata_lock_duration;
55start_metadata_wait_v1_t start_metadata_wait;
56end_metadata_wait_v1_t end_metadata_wait;
58
59#endif /* COMPONENTS_SERVICES_PSI_MDL_SERVICE_H */
void destroy_metadata_lock(PFS_metadata_lock *pfs)
Definition: pfs_instr.cc:1575
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:1547
void(* destroy_metadata_lock_v1_t)(PSI_metadata_lock *lock)
Definition: psi_mdl_bits.h:97
void(* end_metadata_wait_v1_t)(struct PSI_metadata_locker *locker, int rc)
Definition: psi_mdl_bits.h:103
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:99
void(* set_metadata_lock_status_v1_t)(PSI_metadata_lock *lock, opaque_mdl_status mdl_status)
Definition: psi_mdl_bits.h:91
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:86
void(* set_metadata_lock_duration_v2_t)(PSI_metadata_lock *lock, opaque_mdl_duration mdl_duration)
Definition: psi_mdl_bits.h:94
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:91
#define BEGIN_SERVICE_DEFINITION(name)
Declares a new Service.
Definition: service.h:86