MySQL 8.0.40
Source Code Documentation
xcom_detector.h File Reference
#include "xcom/xcom_limits.h"
#include "xdr_gen/xcom_vp.h"

Go to the source code of this file.

Macros

#define DETECTOR_LIVE_TIMEOUT   5.0
 

Typedefs

typedef double detector_state[NSERVERS]
 

Functions

int note_detected (struct site_def const *site, node_no node)
 
int is_server_connected (struct site_def const *site, node_no node)
 States if a server is still physically connected to another server. More...
 
int may_be_dead (detector_state const ds, node_no i, double seconds)
 
void init_detector (detector_state ds)
 
void invalidate_detector_sites (struct site_def *site)
 
void update_detected (struct site_def *site)
 
void send_global_view ()
 

Macro Definition Documentation

◆ DETECTOR_LIVE_TIMEOUT

#define DETECTOR_LIVE_TIMEOUT   5.0

Typedef Documentation

◆ detector_state

typedef double detector_state[NSERVERS]

Function Documentation

◆ init_detector()

void init_detector ( detector_state  ds)

◆ invalidate_detector_sites()

void invalidate_detector_sites ( struct site_def site)

◆ is_server_connected()

int is_server_connected ( struct site_def const *  site,
node_no  node 
)

States if a server is still physically connected to another server.

This will test the connection state to that node.

Parameters
sitesite definition that contains the server collections.
nodenode index that we want to test for connectivity
Returns
1 if the server is connected. 0 otherwise.

◆ may_be_dead()

int may_be_dead ( detector_state const  ds,
node_no  i,
double  seconds 
)

◆ note_detected()

int note_detected ( struct site_def const *  site,
node_no  node 
)

◆ send_global_view()

void send_global_view ( )

◆ update_detected()

void update_detected ( struct site_def site)