MySQL  8.0.20
Source Code Documentation
site_def.h File Reference

Go to the source code of this file.

Functions

site_defnew_site_def ()
 
site_defclone_site_def (site_def const *site)
 
void init_site_def (u_int n, node_address *names, site_def *site)
 
void add_site_def (u_int n, node_address *names, site_def *nodes)
 
void remove_site_def (u_int n, node_address *names, site_def *nodes)
 
char * dbg_site_def (site_def const *site)
 
void init_site_vars ()
 
void free_site_def (site_def *s)
 
void free_site_defs ()
 
site_defpush_site_def (site_def *s)
 
site_def const * find_prev_site_def (synode_no synode)
 
void garbage_collect_site_defs (synode_no x)
 
site_def const * get_site_def ()
 
site_defget_site_def_rw ()
 
site_def const * get_prev_site_def ()
 
synode_no get_boot_key ()
 
void set_boot_key (synode_no const x)
 
uint32_t get_group_id (site_def const *site)
 
node_no get_maxnodes (site_def const *site)
 
node_no get_nodeno (site_def const *site)
 
node_no find_nodeno (site_def const *site, const char *name)
 
node_no get_prev_maxnodes ()
 
node_no get_prev_nodeno ()
 
site_def const * find_site_def (synode_no synode)
 
site_deffind_site_def_rw (synode_no synode)
 
site_def const * find_next_site_def (synode_no synode)
 
node_set detector_node_set (site_def const *site)
 
int enough_live_nodes (site_def const *site)
 
site_defbegin_site_def (site_def *s)
 
site_defend_site_def (synode_no start)
 
void import_config (gcs_snapshot *gcs_snap)
 
gcs_snapshot * export_config ()
 
void get_all_site_defs (site_def ***s, uint32_t *n)
 
synode_no get_min_delivered_msg (site_def const *s)
 
void update_delivered (site_def *s, node_no node, synode_no msgno)
 
synode_no config_max_boot_key (gcs_snapshot const *gcs_snap)
 
static bool_t node_no_exists (node_no n, site_def const *site)
 
static bool_t is_local_node (node_no n, site_def const *site)
 
static serverget_server (site_def const *s, node_no i)
 Finds pointer to server given site and node number. More...
 

Variables

static uint32_t const null_id = 0
 

Function Documentation

◆ add_site_def()

void add_site_def ( u_int  n,
node_address *  names,
site_def nodes 
)

◆ begin_site_def()

site_def* begin_site_def ( site_def s)

◆ clone_site_def()

site_def* clone_site_def ( site_def const *  site)

◆ config_max_boot_key()

synode_no config_max_boot_key ( gcs_snapshot const *  gcs_snap)

◆ dbg_site_def()

char* dbg_site_def ( site_def const *  site)

◆ detector_node_set()

node_set detector_node_set ( site_def const *  site)

◆ end_site_def()

site_def* end_site_def ( synode_no  start)

◆ enough_live_nodes()

int enough_live_nodes ( site_def const *  site)

◆ export_config()

gcs_snapshot* export_config ( )

◆ find_next_site_def()

site_def const* find_next_site_def ( synode_no  synode)

◆ find_nodeno()

node_no find_nodeno ( site_def const *  site,
const char *  name 
)

◆ find_prev_site_def()

site_def const* find_prev_site_def ( synode_no  synode)

◆ find_site_def()

site_def const* find_site_def ( synode_no  synode)

◆ find_site_def_rw()

site_def* find_site_def_rw ( synode_no  synode)

◆ free_site_def()

void free_site_def ( site_def s)

◆ free_site_defs()

void free_site_defs ( )

◆ garbage_collect_site_defs()

void garbage_collect_site_defs ( synode_no  x)

◆ get_all_site_defs()

void get_all_site_defs ( site_def ***  s,
uint32_t *  n 
)

◆ get_boot_key()

synode_no get_boot_key ( )

◆ get_group_id()

uint32_t get_group_id ( site_def const *  site)

◆ get_maxnodes()

node_no get_maxnodes ( site_def const *  site)

◆ get_min_delivered_msg()

synode_no get_min_delivered_msg ( site_def const *  s)

◆ get_nodeno()

node_no get_nodeno ( site_def const *  site)

◆ get_prev_maxnodes()

node_no get_prev_maxnodes ( )

◆ get_prev_nodeno()

node_no get_prev_nodeno ( )

◆ get_prev_site_def()

site_def const* get_prev_site_def ( )

◆ get_server()

static server* get_server ( site_def const *  s,
node_no  i 
)
inlinestatic

Finds pointer to server given site and node number.

Parameters
[in]sPointer to site definition
[in]iNode number
Return values
Pointerto server if success
0if failure

◆ get_site_def()

site_def const* get_site_def ( )

◆ get_site_def_rw()

site_def* get_site_def_rw ( )

◆ import_config()

void import_config ( gcs_snapshot *  gcs_snap)

◆ init_site_def()

void init_site_def ( u_int  n,
node_address *  names,
site_def site 
)

◆ init_site_vars()

void init_site_vars ( )

◆ is_local_node()

static bool_t is_local_node ( node_no  n,
site_def const *  site 
)
inlinestatic

◆ new_site_def()

site_def* new_site_def ( )

◆ node_no_exists()

static bool_t node_no_exists ( node_no  n,
site_def const *  site 
)
inlinestatic

◆ push_site_def()

site_def* push_site_def ( site_def s)

◆ remove_site_def()

void remove_site_def ( u_int  n,
node_address *  names,
site_def nodes 
)

◆ set_boot_key()

void set_boot_key ( synode_no const  x)

◆ update_delivered()

void update_delivered ( site_def s,
node_no  node,
synode_no  msgno 
)

Variable Documentation

◆ null_id

uint32_t const null_id = 0
static