summaryrefslogtreecommitdiff
path: root/sql/sql_table.cc
diff options
context:
space:
mode:
authorunknown <bell@sanja.is.com.ua>2002-05-16 22:06:24 +0300
committerunknown <bell@sanja.is.com.ua>2002-05-16 22:06:24 +0300
commit73bfaf0225462815acd57e7118581137f0dc2aec (patch)
treec66ff7d6d4cb738b79c5a17bdff0b7531c09bd3b /sql/sql_table.cc
parent4d094257dbb785d792785e610ab3cdf41eae9b8c (diff)
parentfc686a57066f5dcba066bd7f16d02992de39432d (diff)
downloadmariadb-git-73bfaf0225462815acd57e7118581137f0dc2aec.tar.gz
Merge sanja.is.com.ua:/home/bell/mysql/mysql-4.0
into sanja.is.com.ua:/home/bell/mysql/work-qc-4.0 sql/sql_parse.cc: Auto merged sql/sql_table.cc: Auto merged
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 4316acfa47d..64a55380b69 100644
--- a/sql/sql_table.cc
+++ b/sql/sql_table.cc
@@ -1119,8 +1119,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(),