MySQL 9.1.0
Source Code Documentation
table_replication_group_member_actions.h
Go to the documentation of this file.
1/* Copyright (c) 2021, 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 as published by
5 the Free Software Foundation; version 2 of the License.
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 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
26
27#ifndef TABLE_REPLICATION_GROUP_MEMBER_ACTIONS_INCLUDE
28#define TABLE_REPLICATION_GROUP_MEMBER_ACTIONS_INCLUDE
29
30namespace gr {
31namespace perfschema {
32
34 public:
37
38 bool init() override;
39 bool deinit() override;
40
41 static unsigned long long get_row_count();
42 static int rnd_init(PSI_table_handle *handle [[maybe_unused]],
43 bool scan [[maybe_unused]]);
44 static int rnd_next(PSI_table_handle *handle);
45 static int rnd_pos(PSI_table_handle *handle);
48 unsigned int index);
49 static PSI_table_handle *open_table(PSI_pos **pos [[maybe_unused]]);
51};
52
53} // namespace perfschema
54} // namespace gr
55
56#endif /* TABLE_REPLICATION_GROUP_MEMBER_ACTIONS_INCLUDE */
Definition: table_replication_group_member_actions.h:33
static int rnd_pos(PSI_table_handle *handle)
Definition: table_replication_group_member_actions.cc:83
bool init() override
Definition: table_replication_group_member_actions.cc:236
static void reset_position(PSI_table_handle *handle)
Definition: table_replication_group_member_actions.cc:94
static PSI_table_handle * open_table(PSI_pos **pos)
Definition: table_replication_group_member_actions.cc:168
static int rnd_next(PSI_table_handle *handle)
Definition: table_replication_group_member_actions.cc:70
static int read_column_value(PSI_table_handle *handle, PSI_field *field, unsigned int index)
Definition: table_replication_group_member_actions.cc:102
static int rnd_init(PSI_table_handle *handle, bool scan)
Definition: table_replication_group_member_actions.cc:65
static void close_table(PSI_table_handle *handle)
Definition: table_replication_group_member_actions.cc:227
bool deinit() override
Definition: table_replication_group_member_actions.cc:234
static unsigned long long get_row_count()
Definition: table_replication_group_member_actions.cc:61
Definition: group_replication_priv.h:44
static int handle(int sql_errno, const char *sqlstate, const char *message, void *state)
Bridge function between the C++ API offered by this module and the C API of the parser service.
Definition: services.cc:64
struct PSI_table_handle PSI_table_handle
This is an opaque structure to denote table handle in plugin/component code.
Definition: pfs_plugin_table_service.h:97
struct PSI_pos PSI_pos
This is an opaque structure to denote cursor position in plugin/component code.
Definition: pfs_plugin_table_service.h:102
struct PSI_field PSI_field
This is an opaque structure to denote filed in plugin/component code.
Definition: pfs_plugin_table_service.h:93