MySQL  8.0.20
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 = 3
}
 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...
 

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