MySQL 8.4.3
Source Code Documentation
rpl_group_replication.h File Reference
#include <violite.h>
#include <string>

Go to the source code of this file.

Typedefs

typedef int(* gr_incoming_connection_cb) (THD *thd, int fd, SSL *ssl_ctx)
 

Functions

bool is_group_replication_plugin_loaded ()
 
int group_replication_start (char **error_message, THD *thd)
 
int group_replication_stop (char **error_message)
 
bool is_group_replication_running ()
 
bool is_group_replication_cloning ()
 
int set_group_replication_retrieved_certification_info (View_change_log_event *view_change_event)
 
bool get_group_replication_connection_status_info (const GROUP_REPLICATION_CONNECTION_STATUS_CALLBACKS &callbacks)
 
bool get_group_replication_group_members_info (unsigned int index, const GROUP_REPLICATION_GROUP_MEMBERS_CALLBACKS &callbacks)
 
bool get_group_replication_group_member_stats_info (unsigned int index, const GROUP_REPLICATION_GROUP_MEMBER_STATS_CALLBACKS &callbacks)
 
unsigned int get_group_replication_members_number_info ()
 
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. More...
 
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. More...
 
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. More...
 
void set_gr_incoming_connection (gr_incoming_connection_cb x)
 

Typedef Documentation

◆ gr_incoming_connection_cb

typedef int(* gr_incoming_connection_cb) (THD *thd, int fd, SSL *ssl_ctx)

Function Documentation

◆ get_group_replication_connection_status_info()

bool get_group_replication_connection_status_info ( const GROUP_REPLICATION_CONNECTION_STATUS_CALLBACKS callbacks)

◆ get_group_replication_group_member_stats_info()

bool get_group_replication_group_member_stats_info ( unsigned int  index,
const GROUP_REPLICATION_GROUP_MEMBER_STATS_CALLBACKS callbacks 
)

◆ get_group_replication_group_members_info()

bool get_group_replication_group_members_info ( unsigned int  index,
const GROUP_REPLICATION_GROUP_MEMBERS_CALLBACKS callbacks 
)

◆ get_group_replication_group_name()

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.

◆ get_group_replication_members_number_info()

unsigned int get_group_replication_members_number_info ( )

◆ get_group_replication_view_change_uuid()

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.

If group_replication_view_change_uuid variable isn't defined or service retrieves error when getting variable it will return default value "AUTOMATIC".

Parameters
[out]uuidRetrieves value of variable group_replication_view_change
Returns
the operation status
Return values
falseOK
trueError

◆ group_replication_start()

int group_replication_start ( char **  error_message,
THD thd 
)

◆ group_replication_stop()

int group_replication_stop ( char **  error_message)

◆ is_group_replication_cloning()

bool is_group_replication_cloning ( )

◆ is_group_replication_member_secondary()

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.

Returns
status
Return values
truethis member is part of a group in single-primary mode and is a secondary
falseotherwise

◆ is_group_replication_plugin_loaded()

bool is_group_replication_plugin_loaded ( )

◆ is_group_replication_running()

bool is_group_replication_running ( )

◆ set_group_replication_retrieved_certification_info()

int set_group_replication_retrieved_certification_info ( View_change_log_event view_change_event)