MySQL 9.0.0
Source Code Documentation
s_mysql_group_membership_listener Struct Reference

A service that listens for notifications about view changes or quorum loss. More...

#include <group_membership_listener.h>

Public Attributes

mysql_service_status_t(* notify_view_change )(const char *view_id)
 This function SHALL be called whenever there is a new view installed. More...
 
mysql_service_status_t(* notify_quorum_loss )(const char *view_id)
 This function SHALL be called whenever the state of a member changes to UNREACHABLE and that makes the system block. More...
 

Detailed Description

A service that listens for notifications about view changes or quorum loss.

Member Data Documentation

◆ notify_quorum_loss

mysql_service_status_t(* s_mysql_group_membership_listener::notify_quorum_loss) (const char *view_id)

This function SHALL be called whenever the state of a member changes to UNREACHABLE and that makes the system block.

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.

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

◆ notify_view_change

mysql_service_status_t(* s_mysql_group_membership_listener::notify_view_change) (const char *view_id)

This function SHALL be called whenever there is a new view installed.

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.

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: