From 47e1c04d093e748a69e86076f6f1d0ea8d7c773c Mon Sep 17 00:00:00 2001 From: Johan Wikman Date: Tue, 17 Nov 2020 17:30:50 +0200 Subject: [PATCH] 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. --- server/core/server.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server/core/server.cc b/server/core/server.cc index 9432713e4..5b03bb0a7 100644 --- a/server/core/server.cc +++ b/server/core/server.cc @@ -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; }