membership_update
Name
membership_update
Synopsis
#include "hooks/cluster/membership_update.h"
| void **membership_update** (
| closure, | |
| | spc, | |
| | sender)
; | |
void * <var class="pdparam">closure</var>
;
sp_closure_t * <var class="pdparam">spc</var>
;
const char * <var class="pdparam">sender</var>
;
| int **has_cluster_membership_update_hook** (
| )
; | |
| void **register_cluster_membership_update_hook_first** (
| hook, | |
| | closure)
; | |
ec_hook_cluster_membership_update_func_t <var class="pdparam">hook</var>
;
void *<var class="pdparam">closure</var>
;
| void **register_cluster_membership_update_hook_last** (
| hook, | |
| | closure)
; | |
ec_hook_cluster_membership_update_func_t <var class="pdparam">hook</var>
;
void *<var class="pdparam">closure</var>
;
| void **call_cluster_membership_update_hook** (
| spc, | |
| | sender)
; | |
Description
Functions registered with this hook will be called whenever a cluster membership update is detected. The required arugments are the appropriate sp_closure_t structure and the group name of the change. The registered function should verify that it is the desired group.