Merge branch 'release-1.0beta-refresh' of github.com:skysql/MaxScale into release-1.0beta-refresh
This commit is contained in:
@ -359,7 +359,9 @@ char *server_string;
|
|||||||
/* get server version string */
|
/* get server version string */
|
||||||
server_string = (char *)mysql_get_server_info(database->con);
|
server_string = (char *)mysql_get_server_info(database->con);
|
||||||
if (server_string) {
|
if (server_string) {
|
||||||
database->server->server_string = strdup(server_string);
|
database->server->server_string = realloc(database->server->server_string, strlen(server_string)+1);
|
||||||
|
if (database->server->server_string)
|
||||||
|
strcpy(database->server->server_string, server_string);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Check if the the Galera FSM shows this node is joined to the cluster */
|
/* Check if the the Galera FSM shows this node is joined to the cluster */
|
||||||
|
@ -439,7 +439,9 @@ char *server_string;
|
|||||||
/* get server version string */
|
/* get server version string */
|
||||||
server_string = (char *)mysql_get_server_info(database->con);
|
server_string = (char *)mysql_get_server_info(database->con);
|
||||||
if (server_string) {
|
if (server_string) {
|
||||||
database->server->server_string = strdup(server_string);
|
database->server->server_string = realloc(database->server->server_string, strlen(server_string)+1);
|
||||||
|
if (database->server->server_string)
|
||||||
|
strcpy(database->server->server_string, server_string);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* get server_id form current node */
|
/* get server_id form current node */
|
||||||
|
@ -353,7 +353,9 @@ char *server_string;
|
|||||||
/* get server version string */
|
/* get server version string */
|
||||||
server_string = (char *)mysql_get_server_info(database->con);
|
server_string = (char *)mysql_get_server_info(database->con);
|
||||||
if (server_string) {
|
if (server_string) {
|
||||||
database->server->server_string = strdup(server_string);
|
database->server->server_string = realloc(database->server->server_string, strlen(server_string)+1);
|
||||||
|
if (database->server->server_string)
|
||||||
|
strcpy(database->server->server_string, server_string);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Check if the the SQL node is able to contact one or more data nodes */
|
/* Check if the the SQL node is able to contact one or more data nodes */
|
||||||
|
Reference in New Issue
Block a user