diff options
author | Sergey Vojtovich <svoj@sun.com> | 2009-12-15 23:52:47 +0400 |
---|---|---|
committer | Sergey Vojtovich <svoj@sun.com> | 2009-12-15 23:52:47 +0400 |
commit | 94098b22c04d94138b71398172a819308bca0338 (patch) | |
tree | 124275c3f1ec273b11d8f4b9c3952eef78477a02 /sql/sql_connect.cc | |
parent | bd1f8f5bfaf9748ca445401687cca97a89e0dfee (diff) | |
download | mariadb-git-94098b22c04d94138b71398172a819308bca0338.tar.gz |
Backport from 6.0-codebase.
WL#3771
"Audit Plugin Interface"
Implement new plug-in type - AUDIT
New plug-in: audit_null
simply increments counter for how many times it was called.
Diffstat (limited to 'sql/sql_connect.cc')
-rw-r--r-- | sql/sql_connect.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sql/sql_connect.cc b/sql/sql_connect.cc index 8ecafce6f93..ce17f7f9adf 100644 --- a/sql/sql_connect.cc +++ b/sql/sql_connect.cc @@ -19,6 +19,7 @@ */ #include "mysql_priv.h" +#include "sql_audit.h" #include "probes_mysql.h" #ifdef HAVE_OPENSSL @@ -1160,6 +1161,7 @@ pthread_handler_t handle_one_connection(void *arg) while (!net->error && net->vio != 0 && !(thd->killed == THD::KILL_CONNECTION)) { + mysql_audit_release(thd); if (do_command(thd)) break; } |