diff options
author | bell@sanja.is.com.ua <> | 2002-04-29 00:33:52 +0300 |
---|---|---|
committer | bell@sanja.is.com.ua <> | 2002-04-29 00:33:52 +0300 |
commit | 29201cbf665bd7007495e06c7240feb5a13b6c71 (patch) | |
tree | f74bb7c0172682417236403294a4f2b39e49af7f /sql/sql_table.cc | |
parent | eaa66555c957b5ca61e2eb1103d4b982c67d8817 (diff) | |
download | mariadb-git-29201cbf665bd7007495e06c7240feb5a13b6c71.tar.gz |
invalidation moved before tables unlocking
Diffstat (limited to 'sql/sql_table.cc')
-rw-r--r-- | sql/sql_table.cc | 4 |
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(), |