mirror of
https://github.com/MariaDB/server.git
synced 2025-07-27 18:02:13 +03:00
Merge backport of WL#3771 with mysql-next-mr.
This commit is contained in:
@ -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);
|
||||
@ -2473,6 +2474,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= mysql_cond_wait(&di->cond, &di->mutex);
|
||||
#else
|
||||
@ -2554,6 +2556,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);
|
||||
mysql_mutex_lock(&di->mutex);
|
||||
}
|
||||
if (di->tables_in_use)
|
||||
|
Reference in New Issue
Block a user