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:
@ -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
|
||||
|
||||
Reference in New Issue
Block a user