MySQL 5.6.14 Source Code Document
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
NodeStatePOD Struct Reference
Inheritance diagram for NodeStatePOD:
Collaboration diagram for NodeStatePOD:

Public Types

enum  StartLevel {
  SL_NOTHING = 0, SL_CMVMI = 1, SL_STARTING = 2, SL_STARTED = 3,
  SL_SINGLEUSER = 4, SL_STOPPING_1 = 5, SL_STOPPING_2 = 6, SL_STOPPING_3 = 7,
  SL_STOPPING_4 = 8
}
enum  StartType {
  ST_INITIAL_START = 0, ST_SYSTEM_RESTART = 1, ST_NODE_RESTART = 2, ST_INITIAL_NODE_RESTART = 3,
  ST_ILLEGAL_TYPE = 4
}

Public Member Functions

 STATIC_CONST (DataLength=8+NodeBitmask::Size)
void init ()
void setDynamicId (Uint32 dynamic)
void setNodeGroup (Uint32 group)
void setSingleUser (Uint32 s)
void setSingleUserApi (Uint32 n)
bool getNodeRestartInProgress () const
bool getSystemRestartInProgress () const
bool getStarted () const
bool getSingleUserMode () const
Uint32 getSingleUserApi () const

Public Attributes

Uint32 startLevel
Uint32 nodeGroup
union {
   Uint32   dynamicId
   Uint32   masterNodeId
}; 
union {
   struct {
      Uint32   startPhase
      Uint32   restartType
   }   starting
   struct {
      Uint32   systemShutdown
      Uint32   timeout
      Uint32   alarmTime
   }   stopping
}; 
Uint32 singleUserMode
Uint32 singleUserApi
BitmaskPOD< NodeBitmask::Size > m_connected_nodes

Detailed Description

Definition at line 24 of file NodeState.hpp.

Member Enumeration Documentation

Enumerator:
SL_NOTHING 

SL_NOTHING Nothing is started

SL_CMVMI 

SL_CMVMI CMVMI is started Listening to management server Qmgr knows nothing...

SL_STARTING 

SL_STARTING All blocks are starting Initial or restart During this phase is startPhase valid

SL_STARTED 

The database is started open for connections

SL_STOPPING_1 

SL_STOPPING_1 - Inform API API is informed not to start transactions on node The database is about to close

New TcSeize(s) are refused (TcSeizeRef)

SL_STOPPING_2 

SL_STOPPING_2 - Close TC New transactions(TC) are refused

SL_STOPPING_3 

SL_STOPPING_3 - Wait for reads in LQH No transactions are running in TC New scans(s) and read(s) are refused in LQH NS: The node is not Primary for any fragment NS: No node is allow to start

SL_STOPPING_4 

SL_STOPPING_4 - Close LQH Node is out of DIGETNODES Insert/Update/Delete can still be running in LQH GCP is refused Node is not startable w.o Node Recovery

Definition at line 26 of file NodeState.hpp.

Member Function Documentation

bool NodeStatePOD::getNodeRestartInProgress ( ) const
inline

Is a node restart in progress (ordinary or initial)

Definition at line 258 of file NodeState.hpp.

Uint32 NodeStatePOD::getSingleUserApi ( ) const
inline

Is in single user mode

Definition at line 270 of file NodeState.hpp.

bool NodeStatePOD::getSingleUserMode ( ) const
inline

Is in single user mode?

Definition at line 265 of file NodeState.hpp.

bool NodeStatePOD::getStarted ( ) const
inline

Are we started

Definition at line 169 of file NodeState.hpp.

bool NodeStatePOD::getSystemRestartInProgress ( ) const
inline

Is a system restart ongoing

Definition at line 275 of file NodeState.hpp.

void NodeStatePOD::init ( void  )
inline

Constructor(s)

Definition at line 202 of file NodeState.hpp.

Here is the call graph for this function:

NodeStatePOD::STATIC_CONST ( DataLength  = 8+NodeBitmask::Size)

Length in 32-bit words

Member Data Documentation

union { ... }

Dynamic id

Uint32 NodeStatePOD::nodeGroup

Node group

Definition at line 119 of file NodeState.hpp.

Uint32 NodeStatePOD::startLevel

Current start level

Definition at line 114 of file NodeState.hpp.


The documentation for this struct was generated from the following file: