diff options
author | Mats Kindahl <mats@sun.com> | 2010-01-25 23:24:24 +0100 |
---|---|---|
committer | Mats Kindahl <mats@sun.com> | 2010-01-25 23:24:24 +0100 |
commit | 12269253b6e7e6719c9226747d48a3307fa147ab (patch) | |
tree | 0f4426db301843ae49eae76ddc41ed6f52b5a701 /sql/sql_class.cc | |
parent | e34eb3b5076e83555ba53a3a454c54995d5c7e99 (diff) | |
parent | 9aeb49fcdbba579e22a3a581ab103c616901ff40 (diff) | |
download | mariadb-git-12269253b6e7e6719c9226747d48a3307fa147ab.tar.gz |
Merging with mysql-next-mr-bugfixing.
Diffstat (limited to 'sql/sql_class.cc')
-rw-r--r-- | sql/sql_class.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sql/sql_class.cc b/sql/sql_class.cc index d02d69aca0c..527b84a795c 100644 --- a/sql/sql_class.cc +++ b/sql/sql_class.cc @@ -32,6 +32,7 @@ #include "slave.h" #include <my_bitmap.h> #include "log_event.h" +#include "sql_audit.h" #include <m_ctype.h> #include <sys/stat.h> #include <thr_alarm.h> @@ -525,6 +526,7 @@ THD::THD() dbug_sentry=THD_SENTRY_MAGIC; #endif #ifndef EMBEDDED_LIBRARY + mysql_audit_init_thd(this); net.vio=0; #endif client_capabilities= 0; // minimalistic client @@ -1043,6 +1045,7 @@ THD::~THD() cleanup(); ha_close_connection(this); + mysql_audit_release(this); plugin_thdvar_cleanup(this); DBUG_PRINT("info", ("freeing security context")); @@ -1060,6 +1063,8 @@ THD::~THD() delete rli_fake; rli_fake= NULL; } + + mysql_audit_free_thd(this); #endif free_root(&main_mem_root, MYF(0)); |