summaryrefslogtreecommitdiff
path: root/sql/sql_table.cc
diff options
context:
space:
mode:
authorbell@sanja.is.com.ua <>2002-04-29 00:33:52 +0300
committerbell@sanja.is.com.ua <>2002-04-29 00:33:52 +0300
commit29201cbf665bd7007495e06c7240feb5a13b6c71 (patch)
treef74bb7c0172682417236403294a4f2b39e49af7f /sql/sql_table.cc
parenteaa66555c957b5ca61e2eb1103d4b982c67d8817 (diff)
downloadmariadb-git-29201cbf665bd7007495e06c7240feb5a13b6c71.tar.gz
invalidation moved before tables unlocking
Diffstat (limited to 'sql/sql_table.cc')
-rw-r--r--sql/sql_table.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/sql/sql_table.cc b/sql/sql_table.cc
index dcbfd709f97..4a782d396c2 100644
--- a/sql/sql_table.cc
+++ b/sql/sql_table.cc
@@ -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(),