MySQL 9.1.0
Source Code Documentation
s_mysql_group_replication_status_service_v1 Struct Reference

A service to get the status of a member of Group Replication. More...

#include <group_replication_status_service.h>

Public Attributes

mysql_service_status_t(* is_group_in_single_primary_mode )()
 Checks if this member is part of a group in single-primary mode. More...
 
mysql_service_status_t(* is_group_in_single_primary_mode_and_im_the_primary )()
 Checks if this member is part of a group in single-primary mode and if this member is the primary. More...
 
mysql_service_status_t(* is_group_in_single_primary_mode_and_im_a_secondary )()
 Checks if this member is part of a group in single-primary mode and if this member is a secondary. More...
 
mysql_service_status_t(* is_member_online_with_group_majority )()
 Checks if this member is ONLINE and part of the group majority. More...
 

Detailed Description

A service to get the status of a member of Group Replication.

This is only available if the component is on a server with Group Replication plugin installed.

SERVICE_TYPE(registry) *plugin_registry = mysql_plugin_registry_acquire();
my_service<SERVICE_TYPE(group_replication_status_service_v1)> svc(
"group_replication_status_service_v1", plugin_registry);
if (svc.is_valid()) {
bool error = svc->...
}
Wraps my_h_service struct conforming ABI into RAII C++ object with ability to cast to desired service...
Definition: my_service.h:35
#define SERVICE_TYPE(name)
Generates the standard Service type name.
Definition: service.h:76
const mysql_service_registry_t * mysql_plugin_registry_acquire()
Returns a new reference to the "registry" service.
Definition: plugin_registry_service.cc:47

Member Data Documentation

◆ is_group_in_single_primary_mode

mysql_service_status_t(* s_mysql_group_replication_status_service_v1::is_group_in_single_primary_mode) ()

Checks if this member is part of a group in single-primary mode.

Returns
status
Return values
truethis member is part of a group in single-primary mode
falseotherwise (including case where member is even not running Group Replication)

◆ is_group_in_single_primary_mode_and_im_a_secondary

mysql_service_status_t(* s_mysql_group_replication_status_service_v1::is_group_in_single_primary_mode_and_im_a_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_in_single_primary_mode_and_im_the_primary

mysql_service_status_t(* s_mysql_group_replication_status_service_v1::is_group_in_single_primary_mode_and_im_the_primary) ()

Checks if this member is part of a group in single-primary mode and if this member is the primary.

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

◆ is_member_online_with_group_majority

mysql_service_status_t(* s_mysql_group_replication_status_service_v1::is_member_online_with_group_majority) ()

Checks if this member is ONLINE and part of the group majority.

Returns
status
Return values
truethis member is ONLINE and part of the group majority
falseotherwise

The documentation for this struct was generated from the following file: