diff --git a/sql/sql_insert.cc b/sql/sql_insert.cc index 785e75635b8..a4da752feb6 100644 --- a/sql/sql_insert.cc +++ b/sql/sql_insert.cc @@ -1858,7 +1858,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. */