MySQL 5.6.14 Source Code Document
|
#include <Sysfile.hpp>
Public Types | |
enum | ActiveStatus { NS_Active = 0, NS_ActiveMissed_1 = 1, NS_ActiveMissed_2 = 2, NS_ActiveMissed_3 = 3, NS_NotActive_NotTakenOver = 5, NS_TakeOver = 6, NS_NotActive_TakenOver = 7, NS_NotDefined = 8, NS_Configured = 9 } |
Public Member Functions | |
STATIC_CONST (SYSFILE_SIZE32=_SYSFILE_SIZE32) | |
STATIC_CONST (NODE_STATUS_SIZE=NODE_ARRAY_SIZE(MAX_NDB_NODES, 4)) | |
STATIC_CONST (NODE_GROUPS_SIZE=NODE_ARRAY_SIZE(MAX_NDB_NODES, NODEID_BITS)) | |
STATIC_CONST (TAKE_OVER_SIZE=NODE_ARRAY_SIZE(MAX_NDB_NODES, NODEID_BITS)) |
Static Public Member Functions | |
static bool | getInitialStartOngoing (const Uint32 &systemRestartBits) |
static void | setInitialStartOngoing (Uint32 &systemRestartBits) |
static void | clearInitialStartOngoing (Uint32 &systemRestartBits) |
static bool | getRestartOngoing (const Uint32 &systemRestartBits) |
static void | setRestartOngoing (Uint32 &systemRestartBits) |
static void | clearRestartOngoing (Uint32 &systemRestartBits) |
static bool | getLCPOngoing (const Uint32 &systemRestartBits) |
static void | setLCPOngoing (Uint32 &systemRestartBits) |
static void | clearLCPOngoing (Uint32 &systemRestartBits) |
static Uint32 | getNodeStatus (NodeId, const Uint32 nodeStatus[]) |
static void | setNodeStatus (NodeId, Uint32 nodeStatus[], Uint32 status) |
static Uint16 | getNodeGroup (NodeId, const Uint32 nodeGroups[]) |
static void | setNodeGroup (NodeId, Uint32 nodeGroups[], Uint16 group) |
static NodeId | getTakeOverNode (NodeId, const Uint32 takeOver[]) |
static void | setTakeOverNode (NodeId, Uint32 takeOver[], NodeId toNode) |
Public Attributes | |
Uint32 | systemRestartBits |
Uint32 | m_restart_seq |
Uint32 | keepGCI |
Uint32 | oldestRestorableGCI |
Uint32 | newestRestorableGCI |
Uint32 | latestLCP_ID |
Uint32 | lastCompletedGCI [MAX_NDB_NODES] |
Uint32 | nodeStatus [NODE_STATUS_SIZE] |
Uint32 | nodeGroups [NODE_GROUPS_SIZE] |
Uint32 | takeOver [TAKE_OVER_SIZE] |
Uint32 | lcpActive [NdbNodeBitmask::Size] |
This struct defines the format of P<X>.sysfile
Definition at line 57 of file Sysfile.hpp.
|
inlinestatic |
Restart Info
i = Initial start completed r = Crash during system restart l = Crash during local checkpoint
1111111111222222222233
01234567890123456789012345678901 irl
Definition at line 160 of file Sysfile.hpp.
Sysfile::STATIC_CONST | ( | SYSFILE_SIZE32 | = _SYSFILE_SIZE32 | ) |
No of 32 bits words in the sysfile
Sysfile::STATIC_CONST | ( | NODE_GROUPS_SIZE | = NODE_ARRAY_SIZE(MAX_NDB_NODES, NODEID_BITS) | ) |
The node group of each node Sizeof(NodeGroup) = 8 Bit
Sysfile::STATIC_CONST | ( | TAKE_OVER_SIZE | = NODE_ARRAY_SIZE(MAX_NDB_NODES, NODEID_BITS) | ) |
Any node can take over for any node
Uint32 Sysfile::lastCompletedGCI[MAX_NDB_NODES] |
Last completed GCI for each node
Definition at line 92 of file Sysfile.hpp.
Uint32 Sysfile::lcpActive[NdbNodeBitmask::Size] |
Is a node running a LCP
Definition at line 140 of file Sysfile.hpp.
Uint32 Sysfile::m_restart_seq |
Restart seq for this node...
Definition at line 70 of file Sysfile.hpp.