pacemaker
3.0.0-d8340737c4
Scalable High-Availability cluster resource manager
|
#include <crm_internal.h>
#include <inttypes.h>
#include <stdbool.h>
#include <stdio.h>
#include <string.h>
#include <sys/param.h>
#include <sys/types.h>
#include <unistd.h>
#include <glib.h>
#include <crm/common/ipc.h>
#include <crm/common/xml_internal.h>
#include <crm/cluster/internal.h>
#include <crm/common/xml.h>
#include <crm/stonith-ng.h>
#include "crmcluster_private.h"
#include <crm/cluster/compat.h>
Go to the source code of this file.
Macros | |
#define | set_peer_flags(peer, flags_to_set) |
#define | clear_peer_flags(peer, flags_to_clear) |
Variables | |
GHashTable * | pcmk__peer_cache = NULL |
GHashTable * | pcmk__remote_peer_cache = NULL |
#define clear_peer_flags | ( | peer, | |
flags_to_clear | |||
) |
Definition at line 77 of file membership.c.
#define set_peer_flags | ( | peer, | |
flags_to_set | |||
) |
Definition at line 70 of file membership.c.
void crm_peer_init | ( | void | ) |
Definition at line 1492 of file membership.c.
pcmk__node_status_t* crm_update_peer_proc | ( | const char * | source, |
pcmk__node_status_t * | node, | ||
uint32_t | flag, | ||
const char * | status | ||
) |
Definition at line 1095 of file membership.c.
void pcmk__cluster_destroy_node_caches | ( | void | ) |
Definition at line 582 of file membership.c.
void pcmk__cluster_forget_cluster_node | ( | uint32_t | id, |
const char * | node_name | ||
) |
Definition at line 465 of file membership.c.
void pcmk__cluster_forget_remote_node | ( | const char * | node_name | ) |
Definition at line 218 of file membership.c.
bool pcmk__cluster_has_quorum | ( | void | ) |
Definition at line 96 of file membership.c.
void pcmk__cluster_init_node_caches | ( | void | ) |
Definition at line 562 of file membership.c.
bool pcmk__cluster_is_node_active | ( | const pcmk__node_status_t * | node | ) |
Definition at line 368 of file membership.c.
pcmk__node_status_t* pcmk__cluster_lookup_remote_node | ( | const char * | node_name | ) |
Definition at line 144 of file membership.c.
unsigned int pcmk__cluster_num_active_nodes | ( | void | ) |
Definition at line 530 of file membership.c.
unsigned int pcmk__cluster_num_remote_nodes | ( | void | ) |
Definition at line 120 of file membership.c.
void pcmk__cluster_set_autoreap | ( | bool | enable | ) |
Definition at line 643 of file membership.c.
void pcmk__cluster_set_quorum | ( | bool | quorate | ) |
Definition at line 108 of file membership.c.
void pcmk__cluster_set_status_callback | ( | void(*)(enum pcmk__node_update, pcmk__node_status_t *, const void *) | dispatch | ) |
Definition at line 620 of file membership.c.
pcmk__node_status_t* pcmk__get_node | ( | unsigned int | id, |
const char * | uname, | ||
const char * | xml_id, | ||
uint32_t | flags | ||
) |
Definition at line 927 of file membership.c.
void pcmk__purge_node_from_cache | ( | const char * | node_name, |
uint32_t | node_id | ||
) |
Definition at line 844 of file membership.c.
void pcmk__reap_unseen_nodes | ( | uint64_t | membership | ) |
Definition at line 1334 of file membership.c.
void pcmk__refresh_node_caches_from_cib | ( | xmlNode * | cib | ) |
Definition at line 1480 of file membership.c.
pcmk__node_status_t* pcmk__search_node_caches | ( | unsigned int | id, |
const char * | uname, | ||
uint32_t | flags | ||
) |
Definition at line 801 of file membership.c.
void pcmk__update_peer_expected | ( | const char * | source, |
pcmk__node_status_t * | node, | ||
const char * | expected | ||
) |
Definition at line 1192 of file membership.c.
pcmk__node_status_t* pcmk__update_peer_state | ( | const char * | source, |
pcmk__node_status_t * | node, | ||
const char * | state, | ||
uint64_t | membership | ||
) |
Update a node's state and membership information.
[in] | source | Caller's function name (for log messages) |
[in,out] | node | Node object to update |
[in] | state | Node's new state |
[in] | membership | Node's new membership ID |
Definition at line 1321 of file membership.c.
GHashTable* pcmk__peer_cache = NULL |
Definition at line 37 of file membership.c.
GHashTable* pcmk__remote_peer_cache = NULL |
Definition at line 55 of file membership.c.