![]() |
MySQL 9.0.0
Source Code Documentation
|
#include "plugin/group_replication/include/mysql_version_gcs_protocol_map.h"
#include <assert.h>
#include <cerrno>
#include <cinttypes>
#include <limits>
#include <regex>
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... | |
static bool | is_one_or_two_digit_number (const std::string &s) |
bool | valid_mysql_version_string (char const *version_str) |
Checks whether the given C-style string has the version format "major.minor.patch". More... | |
static unsigned int | convert_to_base_16_number (char const *const str) |
Member_version | convert_to_member_version (char const *str) |
Converts a "major.minor.patch" C-style string to a Member_version object. More... | |
Variables | |
static Member_version const | version_5_7_14 (0x050714) |
static Member_version const | version_8_0_16 (0x080016) |
static Member_version const | version_8_0_27 (0x080027) |
static std::string const | one_or_two_digit_number_regex = "([0-9]{1,2})" |
|
static |
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
.
mysql_version | The MySQL version to convert |
my_version | The MySQL version of this server |
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.
version_str | the string to convert |
Member_version convert_to_mysql_version | ( | Gcs_protocol_version const & | gcs_protocol | ) |
Converts the given GCS protocol version into the respective MySQL version.
gcs_protocol | The GCS protocol to convert |
|
static |
bool valid_mysql_version_string | ( | char const * | version_str | ) |
Checks whether the given C-style string has the version format "major.minor.patch".
version_str | the string to validate |
true | if valid |
false | otherwise |
|
static |
|
static |
|
static |
|
static |