MySQL 9.1.0
Source Code Documentation
|
#include "xcom/site_def.h"
#include <assert.h>
#include <stdlib.h>
#include <algorithm>
#include <iterator>
#include "xcom/bitset.h"
#include "xcom/node_list.h"
#include "xcom/node_no.h"
#include "xcom/node_set.h"
#include "xcom/server_struct.h"
#include "xcom/simset.h"
#include "xcom/site_struct.h"
#include "xcom/synode_no.h"
#include "xcom/task.h"
#include "xcom/task_debug.h"
#include "xcom/x_platform.h"
#include "xcom/xcom_base.h"
#include "xcom/xcom_common.h"
#include "xcom/xcom_detector.h"
#include "xcom/xcom_memory.h"
#include "xcom/xcom_profile.h"
#include "xcom/xcom_transport.h"
#include "xdr_gen/xcom_vp.h"
Classes | |
struct | site_def_ptr_array |
Typedefs | |
typedef site_def * | site_def_ptr |
typedef struct site_def_ptr_array | site_def_ptr_array |
Functions | |
init_xdr_array (site_def_ptr) free_xdr_array(site_def_ptr) set_xdr_array(site_def_ptr) static site_def_ptr_array site_defs | |
static node_no | _get_maxnodes (site_def const *site) |
void | get_all_site_defs (site_def ***s, uint32_t *n) |
void | init_site_vars () |
void | free_site_def_body (site_def *s) |
void | free_site_def (site_def *s) |
void | free_site_defs () |
site_def * | push_site_def (site_def *s) |
static site_def const * | _get_site_def () |
site_def * | get_site_def_rw () |
static site_def const * | _get_prev_site_def () |
site_def const * | get_site_def () |
site_def const * | get_prev_site_def () |
static int | match_def (site_def const *site, synode_no synode) |
site_def const * | find_site_def (synode_no synode) |
site_def * | find_site_def_rw (synode_no synode) |
static int | start_gt (site_def const *site, synode_no synode) |
site_def const * | find_next_site_def (synode_no synode) |
static int | prev_def (site_def const *site, synode_no synode) |
site_def const * | find_prev_site_def (synode_no synode) |
void | garbage_collect_site_defs (synode_no x) |
char * | dbg_site_def (site_def const *site) |
site_def * | new_site_def () |
static void | clone_leader (leader *l, leader const *x) |
leader_array | alloc_leader_array (u_int n) |
leader_array | clone_leader_array (leader_array const x) |
site_def * | clone_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 *site) |
void | remove_site_def (u_int n, node_address *names, site_def *site) |
uint32_t | get_group_id (site_def const *site) |
node_no | get_maxnodes (site_def const *site) |
static node_no | _get_nodeno (site_def const *site) |
node_no | get_nodeno (site_def const *site) |
node_no | find_nodeno (site_def const *site, const char *address) |
node_no | get_prev_nodeno () |
synode_no | config_max_boot_key (gcs_snapshot const *gcs_snap) |
void | import_config (gcs_snapshot *gcs_snap) |
static synode_no | get_conf_max () |
gcs_snapshot * | export_config () |
synode_no | get_min_delivered_msg (site_def const *s) |
void | update_delivered (site_def *s, node_no node, synode_no msgno) |
synode_no | get_highest_boot_key (gcs_snapshot *gcs_snap) |
Variables | |
synode_no | executed_msg |
typedef site_def* site_def_ptr |
typedef struct site_def_ptr_array site_def_ptr_array |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
leader_array alloc_leader_array | ( | u_int | n | ) |
|
static |
leader_array clone_leader_array | ( | leader_array const | x | ) |
synode_no config_max_boot_key | ( | gcs_snapshot const * | gcs_snap | ) |
char * dbg_site_def | ( | site_def const * | site | ) |
gcs_snapshot * export_config | ( | ) |
site_def const * find_next_site_def | ( | synode_no | synode | ) |
node_no find_nodeno | ( | site_def const * | site, |
const char * | address | ||
) |
site_def const * find_prev_site_def | ( | synode_no | synode | ) |
site_def const * find_site_def | ( | synode_no | synode | ) |
site_def * find_site_def_rw | ( | synode_no | synode | ) |
void free_site_def | ( | site_def * | s | ) |
void free_site_def_body | ( | site_def * | s | ) |
void free_site_defs | ( | ) |
void garbage_collect_site_defs | ( | synode_no | x | ) |
void get_all_site_defs | ( | site_def *** | s, |
uint32_t * | n | ||
) |
|
static |
uint32_t get_group_id | ( | site_def const * | site | ) |
synode_no get_highest_boot_key | ( | gcs_snapshot * | gcs_snap | ) |
node_no get_maxnodes | ( | site_def const * | site | ) |
synode_no get_min_delivered_msg | ( | site_def const * | s | ) |
node_no get_nodeno | ( | site_def const * | site | ) |
node_no get_prev_nodeno | ( | ) |
site_def const * get_prev_site_def | ( | ) |
site_def const * get_site_def | ( | ) |
site_def * get_site_def_rw | ( | ) |
void import_config | ( | gcs_snapshot * | gcs_snap | ) |
void init_site_vars | ( | ) |
init_xdr_array | ( | site_def_ptr | ) |
|
inlinestatic |
site_def * new_site_def | ( | ) |
|
inlinestatic |
|
inlinestatic |
void update_delivered | ( | site_def * | s, |
node_no | node, | ||
synode_no | msgno | ||
) |
|
extern |