1
0
mirror of https://github.com/MariaDB/server.git synced 2025-12-24 11:21:21 +03:00

invalidation moved before tables unlocking

This commit is contained in:
bell@sanja.is.com.ua
2002-04-29 00:33:52 +03:00
parent eaa66555c9
commit 29201cbf66
5 changed files with 22 additions and 10 deletions

View File

@@ -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(),