diff options
author | Monty <monty@mariadb.org> | 2020-08-20 17:29:40 +0300 |
---|---|---|
committer | Monty <monty@mariadb.org> | 2020-08-20 19:34:11 +0300 |
commit | 2c9be1e6ee2c611fde9b3ec4014997682c7295df (patch) | |
tree | 5152ecdde7b5290cc0e30135a0cd166f68cd5485 | |
parent | 76a922700184f9aef021719f3f5b165a60a1ed50 (diff) | |
download | mariadb-git-2c9be1e6ee2c611fde9b3ec4014997682c7295df.tar.gz |
Fixed wrong value of "wsrep" in SHOW STATUS
If WSREP was not initalized SHOW GLOBAL STATUS could have a random
value of "wsrep"
-rw-r--r-- | sql/wsrep_var.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sql/wsrep_var.cc b/sql/wsrep_var.cc index 70a4bc8c470..40689b7cf88 100644 --- a/sql/wsrep_var.cc +++ b/sql/wsrep_var.cc @@ -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; } |