MySQL 8.3.0
Source Code Documentation
s_mysql_group_member_status_listener Struct Reference

A service that listens for notifications about member state or member role updates. More...

#include <group_member_status_listener.h>

Public Attributes

mysql_service_status_t(* notify_member_role_change )(const char *view_id)
 This function SHALL be called whenever the role of a member changes. More...
 
mysql_service_status_t(* notify_member_state_change )(const char *view_id)
 This function SHALL be called whenever the state of a member changes. More...
 

Detailed Description

A service that listens for notifications about member state or member role updates.

Member Data Documentation

◆ notify_member_role_change

mysql_service_status_t(* s_mysql_group_member_status_listener::notify_member_role_change) (const char *view_id)

This function SHALL be called whenever the role of a member changes.

The implementation SHALL consume the notification and return false on success, true on failure.

The implementation MUST NOT block the caller. It MUST handle the notification quickly or enqueue it and deal with it asynchronously.

Currently the server can have one of two roles in group replication, when setup in single primary mode: PRIMARY or SECONDARY.

Parameters
view_idThe view identifier. This must be copied if the string must outlive the notification lifecycle.
Returns
false success, true on failure.

◆ notify_member_state_change

mysql_service_status_t(* s_mysql_group_member_status_listener::notify_member_state_change) (const char *view_id)

This function SHALL be called whenever the state of a member changes.

The implementation SHALL consume the notification and return false on success, true on failure.

The implementation MUST NOT block the caller. It MUST handle the notification quickly or enqueue it and deal with it asynchronously.

A state is one of OFFLINE, ONLINE, RECOVERING, UNREACHABLE, ERROR.

Parameters
view_idThe view identifier. This must be copied if the string must outlive the notification lifecycle.
Returns
false success, true on failure.

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