MySQL 8.2.0
Source Code Documentation
rpl_group_replication.h
Go to the documentation of this file.
1/* Copyright (c) 2013, 2023, 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 also distributed 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 included with MySQL.
13
14 This program is distributed in the hope that it will be useful,
15 but WITHOUT ANY WARRANTY; without even the implied warranty of
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 GNU General Public License, version 2.0, for more details.
18
19 You should have received a copy of the GNU General Public License
20 along with this program; if not, write to the Free Software
21 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */
22
23#ifndef RPL_GROUP_REPLICATION_INCLUDED
24#define RPL_GROUP_REPLICATION_INCLUDED
25
26#include <violite.h>
27#include <string>
28
29class THD;
34
35/*
36 Group Replication plugin handler function accessors.
37*/
39
40int group_replication_start(char **error_message, THD *thd);
41int group_replication_stop(char **error_message);
45 View_change_log_event *view_change_event);
46
50 unsigned int index,
53 unsigned int index,
56/**
57 Getter to extract the group_name in GR which, this can be used
58 outside GR to find out the group name.
59*/
61
62/**
63 Getter to extract the value of variable group_replication_view_change_uuid in
64 Group Replication.
65
66 If group_replication_view_change_uuid variable isn't defined or service
67 retrieves error when getting variable it will return default value
68 "AUTOMATIC".
69
70 @param[out] uuid Retrieves value of variable group_replication_view_change
71
72 @return the operation status
73 @retval false OK
74 @retval true Error
75*/
76bool get_group_replication_view_change_uuid(std::string &uuid);
77
78/**
79 Checks if this member is part of a group in single-primary mode and if
80 this member is a secondary.
81
82 @return status
83 @retval true this member is part of a group in single-primary mode
84 and is a secondary
85 @retval false otherwise
86*/
88
89// Callback definition for socket donation
90typedef int (*gr_incoming_connection_cb)(THD *thd, int fd, SSL *ssl_ctx);
92
93#endif /* RPL_GROUP_REPLICATION_INCLUDED */
static const sasl_callback_t callbacks[]
Definition: auth_ldap_sasl_client.h:44
For each client connection we create a separate thread with THD serving as a thread/connection descri...
Definition: sql_lexer_thd.h:35
This is the subclass of View_change_log_event and Log_event This class created the view_change_log_ev...
Definition: log_event.h:4365
void set_gr_incoming_connection(gr_incoming_connection_cb x)
Definition: sql_parse.cc:1633
bool is_group_replication_running()
Definition: rpl_group_replication.cc:244
int group_replication_stop(char **error_message)
Definition: rpl_group_replication.cc:215
std::string get_group_replication_group_name()
Getter to extract the group_name in GR which, this can be used outside GR to find out the group name.
Definition: rpl_group_replication.cc:604
bool is_group_replication_plugin_loaded()
Definition: rpl_group_replication.cc:114
bool get_group_replication_group_member_stats_info(unsigned int index, const GROUP_REPLICATION_GROUP_MEMBER_STATS_CALLBACKS &callbacks)
Definition: rpl_group_replication.cc:328
bool get_group_replication_group_members_info(unsigned int index, const GROUP_REPLICATION_GROUP_MEMBERS_CALLBACKS &callbacks)
Definition: rpl_group_replication.cc:310
bool get_group_replication_view_change_uuid(std::string &uuid)
Getter to extract the value of variable group_replication_view_change_uuid in Group Replication.
Definition: rpl_group_replication.cc:632
bool is_group_replication_cloning()
Definition: rpl_group_replication.cc:260
bool get_group_replication_connection_status_info(const GROUP_REPLICATION_CONNECTION_STATUS_CALLBACKS &callbacks)
Definition: rpl_group_replication.cc:293
unsigned int get_group_replication_members_number_info()
Definition: rpl_group_replication.cc:346
bool is_group_replication_member_secondary()
Checks if this member is part of a group in single-primary mode and if this member is a secondary.
Definition: rpl_group_replication.cc:680
int(* gr_incoming_connection_cb)(THD *thd, int fd, SSL *ssl_ctx)
Definition: rpl_group_replication.h:90
int set_group_replication_retrieved_certification_info(View_change_log_event *view_change_event)
Definition: rpl_group_replication.cc:276
int group_replication_start(char **error_message, THD *thd)
Definition: rpl_group_replication.cc:128
Definition: plugin_group_replication.h:53
Definition: plugin_group_replication.h:72
Definition: plugin_group_replication.h:100
Vio Lite.