From 78abdeab073fcc4252c2ff2a0030372491fe5026 Mon Sep 17 00:00:00 2001 From: Guy Lichtman Date: Sat, 6 Jul 2013 01:39:39 +0300 Subject: [PATCH] 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. --- src/audit_plugin.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/audit_plugin.cc b/src/audit_plugin.cc index 6298783..0a1df53 100755 --- a/src/audit_plugin.cc +++ b/src/audit_plugin.cc @@ -1920,10 +1920,10 @@ static int audit_plugin_deinit(void *p) static struct st_mysql_show_var audit_status[] = { -{ "AUDIT_version", +{ "Audit_version", (char *) MYSQL_AUDIT_PLUGIN_VERSION "-" MYSQL_AUDIT_PLUGIN_REVISION, SHOW_CHAR }, -{ "AUDIT_protocol_version", +{ "Audit_protocol_version", (char *) "1.0", SHOW_CHAR }, //{"called", (char *)&number_of_calls, SHOW_LONG},