mirror of
https://github.com/MariaDB/server.git
synced 2026-01-06 05:22:24 +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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user