summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSergey Vojtovich <svoj@mariadb.org>2016-03-01 10:21:42 +0400
committerSergey Vojtovich <svoj@mariadb.org>2016-03-08 11:26:28 +0400
commita8d97fb8186968e193ce0f3c8d1ee416b115e9e0 (patch)
treeed96b2272acb7e2f874cafc2d5b13d1689de65f9 /include
parente9f6c8167e238107643b9ef6228ca23976afb654 (diff)
downloadmariadb-git-a8d97fb8186968e193ce0f3c8d1ee416b115e9e0.tar.gz
MDEV-9651 - Simplify audit event dispatching
Simplified audit event dispatching call chain from: mysql_audit_notify_connection_connect() // can be inlined mysql_audit_notify() // can't be inlined connection_class_handler() // can't be inlined event_class_dispatch() // can be inlined plugins_dispatch() // can be inlined plugin->event_notify() // can't be inlined to: mysql_audit_notify_connection_connect() // can be inlined mysql_audit_notify() // can't be inlined plugins_dispatch() // can be inlined plugin->event_notify() // can't be inlined
Diffstat (limited to 'include')
-rw-r--r--include/mysql/plugin_audit.h2
-rw-r--r--include/mysql/plugin_audit.h.pp2
2 files changed, 2 insertions, 2 deletions
diff --git a/include/mysql/plugin_audit.h b/include/mysql/plugin_audit.h
index 31589f071f0..7fb6e816181 100644
--- a/include/mysql/plugin_audit.h
+++ b/include/mysql/plugin_audit.h
@@ -56,7 +56,7 @@ struct mysql_event_general
unsigned int general_command_length;
const char *general_query;
unsigned int general_query_length;
- struct charset_info_st *general_charset;
+ const struct charset_info_st *general_charset;
unsigned long long general_time;
unsigned long long general_rows;
/* Added in version 0x302 */
diff --git a/include/mysql/plugin_audit.h.pp b/include/mysql/plugin_audit.h.pp
index f4df16afa67..8fc935262e2 100644
--- a/include/mysql/plugin_audit.h.pp
+++ b/include/mysql/plugin_audit.h.pp
@@ -422,7 +422,7 @@ struct mysql_event_general
unsigned int general_command_length;
const char *general_query;
unsigned int general_query_length;
- struct charset_info_st *general_charset;
+ const struct charset_info_st *general_charset;
unsigned long long general_time;
unsigned long long general_rows;
unsigned long long query_id;