summaryrefslogtreecommitdiff
path: root/sql/sql_insert.cc
diff options
context:
space:
mode:
Diffstat (limited to 'sql/sql_insert.cc')
-rw-r--r--sql/sql_insert.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/sql/sql_insert.cc b/sql/sql_insert.cc
index a207ce09de7..7587a447445 100644
--- a/sql/sql_insert.cc
+++ b/sql/sql_insert.cc
@@ -62,6 +62,7 @@
#include "slave.h"
#include "rpl_mi.h"
#include "transaction.h"
+#include "sql_audit.h"
#ifndef EMBEDDED_LIBRARY
static bool delayed_get_table(THD *thd, TABLE_LIST *table_list);
@@ -2521,6 +2522,7 @@ pthread_handler_t handle_delayed_insert(void *arg)
while (!thd->killed && !di->status)
{
int error;
+ mysql_audit_release(thd);
#if defined(HAVE_BROKEN_COND_TIMEDWAIT)
error= mysql_cond_wait(&di->cond, &di->mutex);
#else
@@ -2613,6 +2615,7 @@ pthread_handler_t handle_delayed_insert(void *arg)
mysql_unlock_tables(thd, lock);
trans_commit_stmt(thd);
di->group_count=0;
+ mysql_audit_release(thd);
mysql_mutex_lock(&di->mutex);
}
if (di->tables_in_use)