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

Flush entries from the query cache for tables used in

administrative statements that may alter the table, such
as REPAIR TABLE. (Bug #8480)
This commit is contained in:
jimw@mysql.com
2005-03-07 18:15:19 -08:00
parent b5528a8dc6
commit df84c534dd
3 changed files with 35 additions and 1 deletions

View File

@@ -533,4 +533,16 @@ select * from t1;
drop table t1;
drop table t1;
# Bug #8480: REPAIR TABLE needs to flush the table from the query cache
set global query_cache_size=1024*1024;
flush query cache;
create table t1 ( a int );
insert into t1 values (1);
select a from t1;
select a from t1;
show status like 'qcache_queries_in_cache';
repair table t1;
show status like 'qcache_queries_in_cache';
drop table t1;
set GLOBAL query_cache_size=0;