Go to the source code of this file.
|
struct crm_ais_host_s | __attribute__ ((packed)) |
|
cs_ipc_header_response_t header | __attribute__ ((aligned(8))) |
|
gboolean | check_message_sanity (const AIS_Message *msg, const char *data) |
|
crm_node_t * | crm_update_peer_proc (const char *source, crm_node_t *peer, uint32_t flag, const char *status) |
|
crm_node_t * | crm_update_peer_state (const char *source, crm_node_t *node, const char *state, int membership) |
| Update a node's state and membership information. More...
|
|
void | crm_update_peer_uname (crm_node_t *node, const char *uname) |
|
void | crm_update_peer_expected (const char *source, crm_node_t *node, const char *expected) |
|
void | crm_reap_unseen_nodes (uint64_t ring_id) |
|
gboolean | cluster_connect_quorum (gboolean(*dispatch)(unsigned long long, gboolean), void(*destroy)(gpointer)) |
|
gboolean | node_name_is_valid (const char *key, const char *name) |
|
crm_node_t * | crm_find_peer_full (unsigned int id, const char *uname, int flags) |
|
crm_node_t * | crm_find_peer (unsigned int id, const char *uname) |
|
void | crm_peer_caches_refresh (xmlNode *cib) |
|
crm_node_t * | crm_find_known_peer_full (unsigned int id, const char *uname, int flags) |
|
Enumerator |
---|
crm_proc_none |
|
crm_proc_cpg |
|
crm_proc_execd |
|
crm_proc_based |
|
crm_proc_controld |
|
crm_proc_attrd |
|
crm_proc_schedulerd |
|
crm_proc_fenced |
|
Definition at line 44 of file internal.h.
gboolean check_message_sanity |
( |
const AIS_Message * |
msg, |
|
|
const char * |
data |
|
) |
| |
gboolean cluster_connect_quorum |
( |
gboolean(*)(unsigned long long, gboolean) |
dispatch, |
|
|
void(*)(gpointer) |
destroy |
|
) |
| |
crm_node_t* crm_find_known_peer_full |
( |
unsigned int |
id, |
|
|
const char * |
uname, |
|
|
int |
flags |
|
) |
| |
crm_node_t* crm_find_peer |
( |
unsigned int |
id, |
|
|
const char * |
uname |
|
) |
| |
crm_node_t* crm_find_peer_full |
( |
unsigned int |
id, |
|
|
const char * |
uname, |
|
|
int |
flags |
|
) |
| |
void crm_peer_caches_refresh |
( |
xmlNode * |
cib | ) |
|
void crm_reap_unseen_nodes |
( |
uint64_t |
ring_id | ) |
|
void crm_update_peer_expected |
( |
const char * |
source, |
|
|
crm_node_t * |
node, |
|
|
const char * |
expected |
|
) |
| |
crm_node_t* crm_update_peer_proc |
( |
const char * |
source, |
|
|
crm_node_t * |
peer, |
|
|
uint32_t |
flag, |
|
|
const char * |
status |
|
) |
| |
crm_node_t* crm_update_peer_state |
( |
const char * |
source, |
|
|
crm_node_t * |
node, |
|
|
const char * |
state, |
|
|
int |
membership |
|
) |
| |
Update a node's state and membership information.
- Parameters
-
[in] | source | Caller's function name (for log messages) |
[in] | node | Node object to update |
[in] | state | Node's new state |
[in] | membership | Node's new membership ID |
- Returns
- NULL if any node was reaped, value of node otherwise
- Note
- If this function returns NULL, the supplied node object was likely freed and should not be used again. This function should not be called within a cache iteration if reaping is possible, otherwise reaping could invalidate the iterator.
Definition at line 965 of file membership.c.
void crm_update_peer_uname |
( |
crm_node_t * |
node, |
|
|
const char * |
uname |
|
) |
| |
gboolean node_name_is_valid |
( |
const char * |
key, |
|
|
const char * |
name |
|
) |
| |