mirror of
https://github.com/MariaDB/server.git
synced 2026-05-09 00:24:30 +02:00
invalidation moved before tables unlocking
This commit is contained in:
parent
eaa66555c9
commit
29201cbf66
5 changed files with 22 additions and 10 deletions
|
|
@ -1120,8 +1120,12 @@ static int mysql_admin_table(THD* thd, TABLE_LIST* tables,
|
|||
if (fatal_error)
|
||||
table->table->version=0; // Force close of table
|
||||
else if (open_for_modify)
|
||||
{
|
||||
remove_table_from_cache(thd, table->table->table_cache_key,
|
||||
table->table->real_name);
|
||||
/* May be something modified consequently we have to invalidate cache */
|
||||
query_cache_invalidate3(thd, table->table, 0);
|
||||
}
|
||||
close_thread_tables(thd);
|
||||
table->table=0; // For query cache
|
||||
if (my_net_write(&thd->net, (char*) packet->ptr(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue