MySQL 8.0.39
Source Code Documentation
primary_election_include.h File Reference

Go to the source code of this file.

Macros

#define PRIMARY_ELECTION_MEMBER_WEIGHT_VERSION   0x050720
 The server version in which member weight was introduced. More...
 
#define PRIMARY_ELECTION_LEGACY_ALGORITHM_VERSION   0x080013
 The server version in which online leader elections were introduced. More...
 

Enumerations

enum  enum_primary_election_mode {
  SAFE_OLD_PRIMARY = 0 , UNSAFE_OLD_PRIMARY = 1 , DEAD_OLD_PRIMARY = 2 , LEGACY_ELECTION_PRIMARY = 3 ,
  ELECTION_MODE_END = 4
}
 Enum for election types. More...
 
enum  enum_primary_election_error { PRIMARY_ELECTION_NO_ERROR = 0 , PRIMARY_ELECTION_NO_CANDIDATES_ERROR = 1 , PRIMARY_ELECTION_PROCESS_ERROR = 2 , PRIMARY_ELECTION_ERROR_END = 3 }
 Enum for election errors. More...
 
enum  enum_primary_election_primary_change_status {
  PRIMARY_CHANGE_INIT = 0 , PRIMARY_DID_CHANGE = 1 , PRIMARY_DID_CHANGE_WITH_ERROR , PRIMARY_DID_NOT_CHANGE_NO_CANDIDATE ,
  PRIMARY_DID_NOT_CHANGE = 4 , PRIMARY_DID_NOT_CHANGE_PRIMARY_LEFT_FORCE_ELECTION_END
}
 Enum for primary change status. More...
 

Macro Definition Documentation

◆ PRIMARY_ELECTION_LEGACY_ALGORITHM_VERSION

#define PRIMARY_ELECTION_LEGACY_ALGORITHM_VERSION   0x080013

The server version in which online leader elections were introduced.

◆ PRIMARY_ELECTION_MEMBER_WEIGHT_VERSION

#define PRIMARY_ELECTION_MEMBER_WEIGHT_VERSION   0x050720

The server version in which member weight was introduced.

Enumeration Type Documentation

◆ enum_primary_election_error

Enum for election errors.

Enumerator
PRIMARY_ELECTION_NO_ERROR 
PRIMARY_ELECTION_NO_CANDIDATES_ERROR 
PRIMARY_ELECTION_PROCESS_ERROR 
PRIMARY_ELECTION_ERROR_END 

◆ enum_primary_election_mode

Enum for election types.

Enumerator
SAFE_OLD_PRIMARY 
UNSAFE_OLD_PRIMARY 
DEAD_OLD_PRIMARY 
LEGACY_ELECTION_PRIMARY 
ELECTION_MODE_END 

◆ enum_primary_election_primary_change_status

Enum for primary change status.

Enumerator
PRIMARY_CHANGE_INIT 
PRIMARY_DID_CHANGE 
PRIMARY_DID_CHANGE_WITH_ERROR 
PRIMARY_DID_NOT_CHANGE_NO_CANDIDATE 
PRIMARY_DID_NOT_CHANGE 
PRIMARY_DID_NOT_CHANGE_PRIMARY_LEFT_FORCE_ELECTION_END