From 75392f37078a8e3bf3098f40c84a24c18cd91d5b Mon Sep 17 00:00:00 2001 From: unknown Date: Wed, 16 May 2007 11:49:15 +0400 Subject: [PATCH] Fix a failing assert. sql/sql_insert.cc: Do not access delayed thread memory without a mutex. --- sql/sql_insert.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sql/sql_insert.cc b/sql/sql_insert.cc index 7f951867f4c..5720758128e 100644 --- a/sql/sql_insert.cc +++ b/sql/sql_insert.cc @@ -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. */