MXS-3301 Look for "xpand" to find out whether server is Xpand
We will continue to look for "clustrix" as well so that MaxScale will continue to work with older releases. Clustrix was replaced with xpand in all symbols.
This commit is contained in:
@ -1150,9 +1150,10 @@ void Server::VersionInfo::set(uint64_t version, const std::string& version_str)
|
||||
m_version_num.patch = patch;
|
||||
|
||||
careful_strcpy(m_version_str, MAX_VERSION_LEN, version_str);
|
||||
if (strcasestr(version_str.c_str(), "clustrix") != NULL)
|
||||
if (strcasestr(version_str.c_str(), "xpand") != NULL
|
||||
|| strcasestr(version_str.c_str(), "clustrix") != NULL)
|
||||
{
|
||||
m_type = Type::CLUSTRIX;
|
||||
m_type = Type::XPAND;
|
||||
}
|
||||
else if (strcasestr(version_str.c_str(), "mariadb") != NULL)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user