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