1
0
mirror of https://github.com/MariaDB/server.git synced 2026-01-06 05:22:24 +03:00

Fixed wrong value of "wsrep" in SHOW STATUS

If WSREP was not initalized SHOW GLOBAL STATUS could have a random
value of "wsrep"
This commit is contained in:
Monty
2020-08-20 17:29:40 +03:00
parent 76a9227001
commit 2c9be1e6ee

View File

@@ -948,6 +948,11 @@ int wsrep_show_status (THD *thd, SHOW_VAR *var, char *buff)
var->type= SHOW_ARRAY;
var->value= (char *) &mysql_status_vars;
}
else
{
var->type= SHOW_CHAR;
var->value= (char*) "0";
}
return 0;
}