MySQL 9.0.0
Source Code Documentation
|
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... | |
A service that listens for notifications about member state or member role updates.
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.
view_id | The view identifier. This must be copied if the string must outlive the notification lifecycle. |
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.
view_id | The view identifier. This must be copied if the string must outlive the notification lifecycle. |