MySQL  8.0.19
Source Code Documentation
site_struct.h
Go to the documentation of this file.
1 /* Copyright (c) 2015, 2018, Oracle and/or its affiliates. All rights reserved.
2 
3  This program is free software; you can redistribute it and/or modify
4  it under the terms of the GNU General Public License, version 2.0,
5  as published by the Free Software Foundation.
6 
7  This program is also distributed with certain software (including
8  but not limited to OpenSSL) that is licensed under separate terms,
9  as designated in a particular file or component or in included license
10  documentation. The authors of MySQL hereby grant you an additional
11  permission to link the program and your derivative works with the
12  separately licensed software that they have included with MySQL.
13 
14  This program is distributed in the hope that it will be useful,
15  but WITHOUT ANY WARRANTY; without even the implied warranty of
16  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17  GNU General Public License, version 2.0, for more details.
18 
19  You should have received a copy of the GNU General Public License
20  along with this program; if not, write to the Free Software
21  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */
22 
23 #ifndef SITE_STRUCT_H
24 #define SITE_STRUCT_H
25 
28 
29 #ifdef __cplusplus
30 extern "C" {
31 #endif
32 
33 struct site_def {
34  synode_no start; /* Config is active from this message number */
35  synode_no boot_key; /* The message number of the original unified_boot */
36  node_no nodeno; /* Node number of this node */
37  node_list nodes; /* Set of nodes in this config */
38  server *servers[NSERVERS]; /* Connections to other nodes */
39  detector_state detected; /* Time of last incoming message for each node */
40  node_no global_node_count; /* Number of live nodes in global_node_set */
41  node_set global_node_set; /* The global view */
42  node_set local_node_set; /* The local view */
43  int detector_updated; /* Has detector state been updated? */
45  synode_no delivered_msg[NSERVERS];
46  double install_time;
47  xcom_event_horizon event_horizon;
48 };
49 typedef struct site_def site_def;
50 
51 #ifdef __cplusplus
52 }
53 #endif
54 
55 #endif
server_struct.h
detector_state
double detector_state[NSERVERS]
Definition: xcom_detector.h:34
site_def::servers
server * servers[NSERVERS]
Definition: site_struct.h:38
site_def::local_node_set
node_set local_node_set
Definition: site_struct.h:42
site_def::delivered_msg
synode_no delivered_msg[NSERVERS]
Definition: site_struct.h:45
site_def::boot_key
synode_no boot_key
Definition: site_struct.h:35
site_def::start
synode_no start
Definition: site_struct.h:34
site_def::event_horizon
xcom_event_horizon event_horizon
Definition: site_struct.h:47
site_def::nodeno
node_no nodeno
Definition: site_struct.h:36
xcom_proto
xcom_proto
Definition: xcom_proto_enum.h:25
site_def::x_proto
xcom_proto x_proto
Definition: site_struct.h:44
site_def::global_node_count
node_no global_node_count
Definition: site_struct.h:40
site_def::install_time
double install_time
Definition: site_struct.h:46
site_def::detected
detector_state detected
Definition: site_struct.h:39
site_def
Definition: site_struct.h:33
site_def::global_node_set
node_set global_node_set
Definition: site_struct.h:41
server
Definition: server_struct.h:42
site_def::detector_updated
int detector_updated
Definition: site_struct.h:43
xcom_detector.h
site_def::nodes
node_list nodes
Definition: site_struct.h:37
NSERVERS
#define NSERVERS
Definition: xcom_limits.h:26