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

@ -232,7 +232,7 @@ bool MariaDBServer::do_show_slave_status(string* errmsg_out)
unsigned int columns = 0;
string query;
bool all_slaves_status = false;
if (m_srv_type == server_type::CLUSTRIX)
if (m_srv_type == server_type::XPAND)
{
return false;
}
@ -898,9 +898,9 @@ void MariaDBServer::update_server_version()
m_srv_type = server_type::UNKNOWN; // TODO: Use type information in SERVER directly
auto base_server_type = srv->type();
MYSQL_RES* result;
if (base_server_type == SERVER::Type::CLUSTRIX)
if (base_server_type == SERVER::Type::XPAND)
{
m_srv_type = server_type::CLUSTRIX;
m_srv_type = server_type::XPAND;
}
// Check whether this server is a MaxScale Binlog Server.
else if (mxs_mysql_query(conn, "SELECT @@maxscale_version") == 0