mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
Move init_compiled_charsets to own file
Remove dependency of charsets (in my_init) to get smaller binaries when charsets are not used Simple code cleanup
This commit is contained in:
@ -172,13 +172,15 @@ int mysql_insert(THD *thd,TABLE_LIST *table_list,
|
||||
}
|
||||
}
|
||||
if ((table= delayed_get_table(thd,table_list)) && !thd->is_fatal_error)
|
||||
if (table_list->next && table)
|
||||
{
|
||||
res= 0;
|
||||
if (table_list->next) /* if sub select */
|
||||
res= open_and_lock_tables(thd, table_list->next);
|
||||
else
|
||||
res= (table == 0);
|
||||
}
|
||||
else
|
||||
{
|
||||
lock_type=TL_WRITE;
|
||||
/* Too many delayed insert threads; Use a normal insert */
|
||||
table_list->lock_type= lock_type= TL_WRITE;
|
||||
res= open_and_lock_tables(thd, table_list);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user