MySQL 9.1.0
Source Code Documentation
|
#include <assert.h>
#include <rpc/rpc.h>
#include <stdlib.h>
#include "xcom/x_platform.h"
#include <strings.h>
#include "xcom/node_address.h"
#include "xcom/node_list.h"
#include "xcom/server_struct.h"
#include "xcom/site_def.h"
#include "xcom/task_debug.h"
#include "xcom/xcom_common.h"
#include "xcom/xcom_memory.h"
#include "xcom/xcom_profile.h"
#include "xcom/xcom_transport.h"
#include "xdr_gen/xcom_vp.h"
Functions | |
char * | dbg_list (node_list const *nodes) |
Debug a node list. More... | |
node_list | clone_node_list (node_list list) |
int | match_node (node_address const *n1, node_address const *n2, u_int with_uid) |
int | match_node_list (node_address const *n1, node_address const *n2, u_int len2, u_int with_uid) |
static int | exists (node_address *name, node_list const *nodes, u_int with_uid) |
int | node_exists (node_address *name, node_list const *nodes) |
int | node_exists_with_uid (node_address *name, node_list const *nodes) |
static u_int | added_nodes (u_int n, node_address *names, node_list *nodes) |
static void | init_proto_range (x_proto_range *r) |
blob | clone_blob (blob const b) |
blob * | clone_blob_ptr (blob const *b) |
static void | clone_node_address (node_address *target, node_address const *source) |
void | add_node_list (u_int n, node_address *names, node_list *nodes) |
void | remove_node_list (u_int n, node_address *names, node_list *nodes) |
void | init_node_list (u_int n, node_address *names, node_list *nodes) |
node_list * | empty_node_list () |
node_address * | init_single_node_address (node_address *na, char const *name, uint32_t services) |
node_address * | init_node_address (node_address *na, u_int n, char const *names[]) |
node_address * | new_node_address (u_int n, char const *names[]) |
node_address * | new_node_address_uuid (u_int n, char const *names[], blob uuid[]) |
void | delete_node_address (u_int n, node_address *na) |
static uint32_t | fnv_hash (unsigned char *buf, size_t length, uint32_t sum) |
uint32_t | chksum_node_list (node_list const *nodes) |
void add_node_list | ( | u_int | n, |
node_address * | names, | ||
node_list * | nodes | ||
) |
uint32_t chksum_node_list | ( | node_list const * | nodes | ) |
blob clone_blob | ( | blob const | b | ) |
blob * clone_blob_ptr | ( | blob const * | b | ) |
|
static |
node_list clone_node_list | ( | node_list | list | ) |
char * dbg_list | ( | node_list const * | nodes | ) |
Debug a node list.
void delete_node_address | ( | u_int | n, |
node_address * | na | ||
) |
node_list * empty_node_list | ( | ) |
|
static |
|
static |
node_address * init_node_address | ( | node_address * | na, |
u_int | n, | ||
char const * | names[] | ||
) |
void init_node_list | ( | u_int | n, |
node_address * | names, | ||
node_list * | nodes | ||
) |
|
static |
node_address * init_single_node_address | ( | node_address * | na, |
char const * | name, | ||
uint32_t | services | ||
) |
int match_node | ( | node_address const * | n1, |
node_address const * | n2, | ||
u_int | with_uid | ||
) |
int match_node_list | ( | node_address const * | n1, |
node_address const * | n2, | ||
u_int | len2, | ||
u_int | with_uid | ||
) |
node_address * new_node_address | ( | u_int | n, |
char const * | names[] | ||
) |
node_address * new_node_address_uuid | ( | u_int | n, |
char const * | names[], | ||
blob | uuid[] | ||
) |
int node_exists | ( | node_address * | name, |
node_list const * | nodes | ||
) |
int node_exists_with_uid | ( | node_address * | name, |
node_list const * | nodes | ||
) |
void remove_node_list | ( | u_int | n, |
node_address * | names, | ||
node_list * | nodes | ||
) |