1
0
mirror of https://github.com/MariaDB/server.git synced 2026-01-06 05:22:24 +03:00

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.
This commit is contained in:
Sergey Vojtovich
2009-12-15 23:52:47 +04:00
parent bd1f8f5bfa
commit 94098b22c0
23 changed files with 1133 additions and 237 deletions

View File

@@ -61,6 +61,7 @@
#include "sql_show.h"
#include "slave.h"
#include "rpl_mi.h"
#include "sql_audit.h"
#ifndef EMBEDDED_LIBRARY
static bool delayed_get_table(THD *thd, TABLE_LIST *table_list);
@@ -2431,6 +2432,7 @@ pthread_handler_t handle_delayed_insert(void *arg)
while (!thd->killed)
{
int error;
mysql_audit_release(thd);
#if defined(HAVE_BROKEN_COND_TIMEDWAIT)
error=pthread_cond_wait(&di->cond,&di->mutex);
#else
@@ -2512,6 +2514,7 @@ pthread_handler_t handle_delayed_insert(void *arg)
mysql_unlock_tables(thd, lock);
ha_autocommit_or_rollback(thd, 0);
di->group_count=0;
mysql_audit_release(thd);
pthread_mutex_lock(&di->mutex);
}
if (di->tables_in_use)