MySQL 9.0.0
Source Code Documentation
pfs_setup_object.h
Go to the documentation of this file.
1/* Copyright (c) 2010, 2024, Oracle and/or its affiliates.
2
3 This program is free software; you can redistribute it and/or modify
4 it under the terms of the GNU General Public License, version 2.0,
5 as published by the Free Software Foundation.
6
7 This program is designed to work with certain software (including
8 but not limited to OpenSSL) that is licensed under separate terms,
9 as designated in a particular file or component or in included license
10 documentation. The authors of MySQL hereby grant you an additional
11 permission to link the program and your derivative works with the
12 separately licensed software that they have either included with
13 the program or referenced in the documentation.
14
15 This program is distributed in the hope that it will be useful,
16 but WITHOUT ANY WARRANTY; without even the implied warranty of
17 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 GNU General Public License, version 2.0, for more details.
19
20 You should have received a copy of the GNU General Public License
21 along with this program; if not, write to the Free Software
22 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */
23
24#ifndef PFS_SETUP_OBJECT_H
25#define PFS_SETUP_OBJECT_H
26
27/**
28 @file storage/perfschema/pfs_setup_object.h
29 Performance schema setup object (declarations).
30*/
31
32#include <sys/types.h>
33
34#include "lf.h"
40
41class String;
42struct PFS_global_param;
43class PFS_opaque_container_page;
44
45/**
46 @addtogroup performance_schema_buffers
47 @{
48*/
49
50/** Hash key for @sa PFS_setup_object. */
55};
56
57/** A setup_object record. */
59 /** Internal lock. */
61 /** Hash key. */
63 /** ENABLED flag. */
65 /** TIMED flag. */
66 bool m_timed;
67 /** Container page. */
68 PFS_opaque_container_page *m_page;
69};
70
71int init_setup_object(const PFS_global_param *param);
75
77 const PFS_schema_name *schema,
78 const PFS_object_name *object, bool enabled,
79 bool timed);
81 const PFS_schema_name *schema,
82 const PFS_object_name *object);
85
87 const PFS_schema_name *schema_name,
88 const PFS_table_name *table_name, bool *enabled,
89 bool *timed);
90
92 enum_object_type object_type,
93 const PFS_schema_name *schema,
94 const PFS_routine_name *routine_name,
95 bool *enabled, bool *timed);
96
97/* For show status. */
98
100
101/** @} */
102#endif
Using this class is fraught with peril, and you need to be very careful when doing so.
Definition: sql_string.h:167
int init_setup_object_hash(const PFS_global_param *param)
Initialize the setup objects hash.
Definition: pfs_setup_object.cc:151
LF_HASH setup_object_hash
Definition: pfs_setup_object.cc:52
int init_setup_object(const PFS_global_param *param)
Initialize the setup object buffers.
Definition: pfs_setup_object.cc:60
int delete_setup_object(enum_object_type object_type, const PFS_schema_name *schema, const PFS_object_name *object)
Definition: pfs_setup_object.cc:232
int reset_setup_object()
Definition: pfs_setup_object.cc:278
void lookup_setup_object_routine(PFS_thread *thread, enum_object_type object_type, const PFS_schema_name *schema_name, const PFS_routine_name *routine_name, bool *enabled, bool *timed)
Definition: pfs_setup_object.cc:382
void lookup_setup_object_table(PFS_thread *thread, enum_object_type object_type, const PFS_schema_name *schema_name, const PFS_table_name *table_name, bool *enabled, bool *timed)
Definition: pfs_setup_object.cc:372
long setup_object_count()
Definition: pfs_setup_object.cc:297
int insert_setup_object(enum_object_type object_type, const PFS_schema_name *schema, const PFS_object_name *object, bool enabled, bool timed)
Definition: pfs_setup_object.cc:189
void cleanup_setup_object()
Cleanup all the setup object buffers.
Definition: pfs_setup_object.cc:65
void cleanup_setup_object_hash()
Cleanup the setup objects hash.
Definition: pfs_setup_object.cc:163
const char * table_name
Definition: rules_table_service.cc:56
Data types for columns used in the performance schema tables (declarations)
enum_object_type
Enum values for the various OBJECT_TYPE columns.
Definition: pfs_column_types.h:227
Miscellaneous global dependencies (declarations).
#define PFS_ALIGNED
Definition: pfs_global.h:57
Performance schema instruments (declarations).
Performance schema internal locks (declarations).
Object names (declarations).
required bool enabled
Definition: replication_group_member_actions.proto:33
Definition: lf.h:187
Performance schema global sizing parameters.
Definition: pfs_server.h:120
Definition: pfs_name.h:344
Definition: pfs_name.h:293
Definition: pfs_name.h:194
Hash key for.
Definition: pfs_setup_object.h:51
PFS_schema_name m_schema_name
Definition: pfs_setup_object.h:53
PFS_object_name m_object_name
Definition: pfs_setup_object.h:54
enum_object_type m_object_type
Definition: pfs_setup_object.h:52
A setup_object record.
Definition: pfs_setup_object.h:58
PFS_opaque_container_page * m_page
Container page.
Definition: pfs_setup_object.h:68
bool m_enabled
ENABLED flag.
Definition: pfs_setup_object.h:64
PFS_setup_object_key m_key
Hash key.
Definition: pfs_setup_object.h:62
bool m_timed
TIMED flag.
Definition: pfs_setup_object.h:66
pfs_lock m_lock
Internal lock.
Definition: pfs_setup_object.h:60
Definition: pfs_name.h:242
Instrumented thread implementation.
Definition: pfs_instr.h:375
A 'lock' protecting performance schema internal buffers.
Definition: pfs_lock.h:154