issue #55. Change case to avoid having audit plugin status vars registered first. If a plugin registers first its status var, a "show status" after an uninstall of the plugin will cause a crash.

pull/56/head
Guy Lichtman 2013-07-06 01:39:39 +03:00
parent 72058ca73a
commit 78abdeab07
1 changed files with 2 additions and 2 deletions

View File

@ -1920,10 +1920,10 @@ static int audit_plugin_deinit(void *p)
static struct st_mysql_show_var audit_status[] = static struct st_mysql_show_var audit_status[] =
{ {
{ "AUDIT_version", { "Audit_version",
(char *) MYSQL_AUDIT_PLUGIN_VERSION "-" MYSQL_AUDIT_PLUGIN_REVISION, (char *) MYSQL_AUDIT_PLUGIN_VERSION "-" MYSQL_AUDIT_PLUGIN_REVISION,
SHOW_CHAR }, SHOW_CHAR },
{ "AUDIT_protocol_version", { "Audit_protocol_version",
(char *) "1.0", (char *) "1.0",
SHOW_CHAR }, SHOW_CHAR },
//{"called", (char *)&number_of_calls, SHOW_LONG}, //{"called", (char *)&number_of_calls, SHOW_LONG},