~sergei.glushchenko/percona-server/55-tp

« back to all changes in this revision

Viewing changes to mysql-test/query_cache_enhance.patch/percona_status_wait_query_cache_mutex.result

  • Committer: Oleg Tsarev
  • Date: 2010-12-09 18:30:58 UTC
  • Revision ID: oleg.tsarev@percona.com-20101209183058-1mq1qrgjjkz3qxof
propogate Oleg's patches

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
set GLOBAL query_cache_size=1355776;
 
2
flush query cache;
 
3
flush query cache;
 
4
reset query cache;
 
5
flush status;
 
6
DROP TABLE IF EXISTS t;
 
7
CREATE TABLE t(id INT, number INT);
 
8
INSERT INTO t VALUES (0,1);
 
9
INSERT INTO t VALUES (1,2);
 
10
INSERT INTO t VALUES (2,3);
 
11
SELECT number from t where id > 0;
 
12
number
 
13
2
 
14
3
 
15
SET SESSION debug="+d,status_wait_query_cache_mutex_sleep";
 
16
SELECT number from t where id > 0;
 
17
SET SESSION debug="+d,status_wait_query_cache_mutex_sleep";
 
18
SELECT number from t where id > 0;
 
19
SET SESSION debug="+d,status_wait_query_cache_mutex_sleep";
 
20
SHOW PROCESSLIST;
 
21
Id      User    Host    db      Command Time    State   Info
 
22
Id      root    localhost       test    Sleep   Time            NULL
 
23
Id      root    localhost       test    Query   Time    Waiting on query cache mutex    SELECT number from t where id > 0
 
24
Id      root    localhost       test    Query   Time    Waiting on query cache mutex    SELECT number from t where id > 0
 
25
Id      root    localhost       test    Query   Time    NULL    SHOW PROCESSLIST
 
26
DROP TABLE t;
 
27
set GLOBAL query_cache_size=0;