Skip to content
Permalink
Browse files
Fixed wrong value of "wsrep" in SHOW STATUS
If WSREP was not initalized SHOW GLOBAL STATUS could have a random
value of "wsrep"
  • Loading branch information
montywi committed Aug 20, 2020
1 parent 76a9227 commit 2c9be1e
Showing 1 changed file with 5 additions and 0 deletions.
@@ -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;
}

0 comments on commit 2c9be1e

Please sign in to comment.