MySQL 9.1.0
Source Code Documentation
node_list.cc File Reference
#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)
 

Function Documentation

◆ add_node_list()

void add_node_list ( u_int  n,
node_address *  names,
node_list *  nodes 
)

◆ added_nodes()

static u_int added_nodes ( u_int  n,
node_address *  names,
node_list *  nodes 
)
static

◆ chksum_node_list()

uint32_t chksum_node_list ( node_list const *  nodes)

◆ clone_blob()

blob clone_blob ( blob const  b)

◆ clone_blob_ptr()

blob * clone_blob_ptr ( blob const *  b)

◆ clone_node_address()

static void clone_node_address ( node_address *  target,
node_address const *  source 
)
static

◆ clone_node_list()

node_list clone_node_list ( node_list  list)

◆ dbg_list()

char * dbg_list ( node_list const *  nodes)

Debug a node list.

◆ delete_node_address()

void delete_node_address ( u_int  n,
node_address *  na 
)

◆ empty_node_list()

node_list * empty_node_list ( )

◆ exists()

static int exists ( node_address *  name,
node_list const *  nodes,
u_int  with_uid 
)
static

◆ fnv_hash()

static uint32_t fnv_hash ( unsigned char *  buf,
size_t  length,
uint32_t  sum 
)
static

◆ init_node_address()

node_address * init_node_address ( node_address *  na,
u_int  n,
char const *  names[] 
)

◆ init_node_list()

void init_node_list ( u_int  n,
node_address *  names,
node_list *  nodes 
)

◆ init_proto_range()

static void init_proto_range ( x_proto_range *  r)
static

◆ init_single_node_address()

node_address * init_single_node_address ( node_address *  na,
char const *  name,
uint32_t  services 
)

◆ match_node()

int match_node ( node_address const *  n1,
node_address const *  n2,
u_int  with_uid 
)

◆ match_node_list()

int match_node_list ( node_address const *  n1,
node_address const *  n2,
u_int  len2,
u_int  with_uid 
)

◆ new_node_address()

node_address * new_node_address ( u_int  n,
char const *  names[] 
)

◆ new_node_address_uuid()

node_address * new_node_address_uuid ( u_int  n,
char const *  names[],
blob  uuid[] 
)

◆ node_exists()

int node_exists ( node_address *  name,
node_list const *  nodes 
)

◆ node_exists_with_uid()

int node_exists_with_uid ( node_address *  name,
node_list const *  nodes 
)

◆ remove_node_list()

void remove_node_list ( u_int  n,
node_address *  names,
node_list *  nodes 
)