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.
This commit is contained in:
Johan Wikman 2020-11-17 17:30:50 +02:00
parent 64ca695c84
commit 9ed51b69e1

View File

@ -1150,7 +1150,8 @@ 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;
}