mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
Fix a failing assert.
sql/sql_insert.cc: Do not access delayed thread memory without a mutex.
This commit is contained in:
@@ -1811,7 +1811,7 @@ bool delayed_get_table(THD *thd, TABLE_LIST *table_list)
|
||||
pthread_mutex_unlock(&tmp->mutex);
|
||||
if (table_list->table)
|
||||
{
|
||||
DBUG_ASSERT(tmp->thd.net.report_error == 0 && thd->net.report_error == 0);
|
||||
DBUG_ASSERT(thd->net.report_error == 0);
|
||||
thd->di=tmp;
|
||||
}
|
||||
/* Unlock the delayed insert object after its last access. */
|
||||
|
Reference in New Issue
Block a user