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, uint64_t 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) |
|
◆ ais_data_len
◆ pcmk__clear_peer_flags
#define pcmk__clear_peer_flags |
( |
|
peer, |
|
|
|
flags_to_clear |
|
) |
| |
Value:do { \
(peer)->
flags = pcmk__clear_flags_as(__func__, __LINE__, \
"Peer", (peer)->uname, \
(peer)->
flags, (flags_to_clear), \
#flags_to_clear); \
} while (0)
Definition at line 22 of file internal.h.
◆ pcmk__set_peer_flags
#define pcmk__set_peer_flags |
( |
|
peer, |
|
|
|
flags_to_set |
|
) |
| |
Value:do { \
"Peer", (peer)->uname, \
(peer)->
flags, (flags_to_set), \
#flags_to_set); \
} while (0)
Definition at line 15 of file internal.h.
◆ AIS_Host
◆ AIS_Message
◆ crm_proc_flag
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 71 of file internal.h.
◆ __attribute__() [1/2]
◆ __attribute__() [2/2]
cs_ipc_header_response_t header __attribute__::__attribute__ |
( |
(aligned(8)) |
| ) |
|
◆ check_message_sanity()
gboolean check_message_sanity |
( |
const AIS_Message * |
msg, |
|
|
const char * |
data |
|
) |
| |
◆ cluster_connect_quorum()
gboolean cluster_connect_quorum |
( |
gboolean(*)(unsigned long long, gboolean) |
dispatch, |
|
|
void(*)(gpointer) |
destroy |
|
) |
| |
◆ crm_find_known_peer_full()
crm_node_t* crm_find_known_peer_full |
( |
unsigned int |
id, |
|
|
const char * |
uname, |
|
|
int |
flags |
|
) |
| |
◆ crm_find_peer()
crm_node_t* crm_find_peer |
( |
unsigned int |
id, |
|
|
const char * |
uname |
|
) |
| |
◆ crm_find_peer_full()
crm_node_t* crm_find_peer_full |
( |
unsigned int |
id, |
|
|
const char * |
uname, |
|
|
int |
flags |
|
) |
| |
◆ crm_peer_caches_refresh()
void crm_peer_caches_refresh |
( |
xmlNode * |
cib | ) |
|
◆ crm_reap_unseen_nodes()
void crm_reap_unseen_nodes |
( |
uint64_t |
ring_id | ) |
|
◆ crm_update_peer_expected()
void crm_update_peer_expected |
( |
const char * |
source, |
|
|
crm_node_t * |
node, |
|
|
const char * |
expected |
|
) |
| |
◆ crm_update_peer_proc()
crm_node_t* crm_update_peer_proc |
( |
const char * |
source, |
|
|
crm_node_t * |
peer, |
|
|
uint32_t |
flag, |
|
|
const char * |
status |
|
) |
| |
◆ crm_update_peer_state()
crm_node_t* crm_update_peer_state |
( |
const char * |
source, |
|
|
crm_node_t * |
node, |
|
|
const char * |
state, |
|
|
uint64_t |
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 978 of file membership.c.
◆ crm_update_peer_uname()
void crm_update_peer_uname |
( |
crm_node_t * |
node, |
|
|
const char * |
uname |
|
) |
| |
◆ node_name_is_valid()
gboolean node_name_is_valid |
( |
const char * |
key, |
|
|
const char * |
name |
|
) |
| |
◆ __attribute__
◆ compressed_size
◆ data
◆ host
◆ id
◆ is_compressed
◆ local
◆ pid
◆ sender
◆ size
◆ type
◆ uname