Go to the source code of this file.
◆ 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
◆ convert_to_gcs_protocol()
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_version | The MySQL version to convert |
my_version | The MySQL version of this server |
- Returns
- the respective GCS protocol version
◆ convert_to_member_version()
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_str | the string to convert |
- Returns
- the version string as a Member_version object
◆ convert_to_mysql_version()
Converts the given GCS protocol version into the respective MySQL version.
- Parameters
-
gcs_protocol | The 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_str | the string to validate |
- Return values
-
true | if valid |
false | otherwise |