MySQL 8.0.39
Source Code Documentation
mysql_version_gcs_protocol_map.h File Reference

Go to the source code of this file.

Macros

#define FIRST_PROTOCOL_WITH_SUPPORT_FOR_CONSENSUS_LEADERS   0x080027
 Specific Member versions. More...
 

Functions

Member_version convert_to_mysql_version (Gcs_protocol_version const &gcs_protocol)
 Converts the given GCS protocol version into the respective MySQL version. More...
 
Gcs_protocol_version convert_to_gcs_protocol (Member_version const &mysql_version, Member_version const &my_version)
 Maps GCS protocol version to MySQL version. More...
 
bool valid_mysql_version_string (char const *version_str)
 Checks whether the given C-style string has the version format "major.minor.patch". More...
 
Member_version convert_to_member_version (char const *version_str)
 Converts a "major.minor.patch" C-style string to a Member_version object. More...
 

Macro Definition Documentation

◆ FIRST_PROTOCOL_WITH_SUPPORT_FOR_CONSENSUS_LEADERS

#define FIRST_PROTOCOL_WITH_SUPPORT_FOR_CONSENSUS_LEADERS   0x080027

Specific Member versions.

Add here specific versions that you want to use in the code to do comparisons.

First member version where we have XCom's single leader

Function Documentation

◆ convert_to_gcs_protocol()

Gcs_protocol_version convert_to_gcs_protocol ( Member_version const &  mysql_version,
Member_version const &  my_version 
)

Maps GCS protocol version to MySQL version.

Converts the mysql_version into the respective GCS protocol, taking into account this server's version my_version.

Parameters
mysql_versionThe MySQL version to convert
my_versionThe MySQL version of this server
Returns
the respective GCS protocol version

◆ convert_to_member_version()

Member_version convert_to_member_version ( char const *  version_str)

Converts a "major.minor.patch" C-style string to a Member_version object.

Requires that version_str is a valid_mysql_version_string.

Parameters
version_strthe string to convert
Returns
the version string as a Member_version object

◆ convert_to_mysql_version()

Member_version convert_to_mysql_version ( Gcs_protocol_version const &  gcs_protocol)

Converts the given GCS protocol version into the respective MySQL version.

Parameters
gcs_protocolThe GCS protocol to convert
Returns
the respective MySQL version as a Member_version object

◆ valid_mysql_version_string()

bool valid_mysql_version_string ( char const *  version_str)

Checks whether the given C-style string has the version format "major.minor.patch".

Parameters
version_strthe string to validate
Return values
trueif valid
falseotherwise