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