MXS-199: Support Causal Read in Read Write Splitting (#164)
* MXS-199: Support Causal Read in Read Write Splitting * move most causal read logic into rwsplit router and get server type from monitor * misc fix: remove new line * refactor, move config to right place, replace ltrim with gwbuf_consume * refacter a little for previous commit * fix code style
This commit is contained in:
@ -366,5 +366,14 @@ void mxs_mysql_set_server_version(MYSQL* mysql, SERVER* server)
|
||||
unsigned long version = mysql_get_server_version(mysql);
|
||||
|
||||
server_set_version(server, version_string, version);
|
||||
|
||||
if (strcasestr(version_string, "mariadb") != NULL)
|
||||
{
|
||||
server->server_type = SERVER_TYPE_MARIADB;
|
||||
}
|
||||
else
|
||||
{
|
||||
server->server_type = SERVER_TYPE_MYSQL;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user