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:
Johan Wikman
2020-11-17 13:25:13 +02:00
parent 10582a02fe
commit 4728730510
5 changed files with 26 additions and 25 deletions

View File

@ -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)
{