mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
Merge XtraDB from Percona-server-5.5.17-rel22.1 into MariaDB 5.5
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
set GLOBAL query_cache_size=1355776;
|
||||
SET GLOBAL query_cache_size=1355776;
|
||||
flush query cache;
|
||||
flush query cache;
|
||||
reset query cache;
|
||||
@ -8,20 +8,16 @@ CREATE TABLE t(id INT, number INT);
|
||||
INSERT INTO t VALUES (0,1);
|
||||
INSERT INTO t VALUES (1,2);
|
||||
INSERT INTO t VALUES (2,3);
|
||||
SET SESSION debug="+d,status_waiting_on_query_cache_mutex_sleep";
|
||||
SET DEBUG_SYNC='status_waiting_on_query_cache_mutex SIGNAL thread_ready';
|
||||
SELECT number from t where id > 0;
|
||||
number
|
||||
2
|
||||
3
|
||||
SET SESSION debug="+d,status_wait_query_cache_mutex_sleep";
|
||||
SELECT number from t where id > 0;
|
||||
SET SESSION debug="+d,status_wait_query_cache_mutex_sleep";
|
||||
SELECT number from t where id > 0;
|
||||
SET SESSION debug="+d,status_wait_query_cache_mutex_sleep";
|
||||
SHOW PROCESSLIST;
|
||||
Id User Host db Command Time State Info Rows_sent Rows_examined Rows_read
|
||||
Id root localhost test Sleep Time NULL Rows_sent Rows_examined Rows_read
|
||||
Id root localhost test Query Time Waiting on query cache mutex SELECT number from t where id > 0 Rows_sent Rows_examined Rows_read
|
||||
Id root localhost test Query Time Waiting on query cache mutex SELECT number from t where id > 0 Rows_sent Rows_examined Rows_read
|
||||
Id root localhost test Query Time NULL SHOW PROCESSLIST Rows_sent Rows_examined Rows_read
|
||||
### root ### test Query ### NULL SHOW PROCESSLIST ### ### ###
|
||||
### root ### test Query ### Waiting on query cache mutex SELECT number from t where id > 0 ### ### ###
|
||||
SELECT id, info, state FROM INFORMATION_SCHEMA.PROCESSLIST ORDER BY id;
|
||||
id info state
|
||||
### SELECT id, info, state FROM INFORMATION_SCHEMA.PROCESSLIST ORDER BY id executing
|
||||
### SELECT number from t where id > 0 Waiting on query cache mutex
|
||||
DROP TABLE t;
|
||||
set GLOBAL query_cache_size=0;
|
||||
SET GLOBAL query_cache_size=0;
|
||||
|
@ -1,6 +1,7 @@
|
||||
--source include/have_query_cache.inc
|
||||
--source include/have_debug.inc
|
||||
set GLOBAL query_cache_size=1355776;
|
||||
--source include/have_debug_sync.inc
|
||||
SET GLOBAL query_cache_size=1355776;
|
||||
--source include/percona_query_cache_with_comments_clear.inc
|
||||
|
||||
-- disable_warnings
|
||||
@ -10,28 +11,21 @@ CREATE TABLE t(id INT, number INT);
|
||||
INSERT INTO t VALUES (0,1);
|
||||
INSERT INTO t VALUES (1,2);
|
||||
INSERT INTO t VALUES (2,3);
|
||||
SELECT number from t where id > 0;
|
||||
--connect (conn0,localhost,root,,)
|
||||
--connect (conn1,localhost,root,,)
|
||||
--connect (conn2,localhost,root,,)
|
||||
|
||||
--connection conn0
|
||||
--error 0, ER_UNKNOWN_SYSTEM_VARIABLE
|
||||
SET SESSION debug="+d,status_wait_query_cache_mutex_sleep";
|
||||
--connect (conn,localhost,root,,)
|
||||
|
||||
--connection conn
|
||||
SET SESSION debug="+d,status_waiting_on_query_cache_mutex_sleep";
|
||||
SET DEBUG_SYNC='status_waiting_on_query_cache_mutex SIGNAL thread_ready';
|
||||
SEND SELECT number from t where id > 0;
|
||||
SLEEP 1.0;
|
||||
|
||||
--connection conn1
|
||||
--error 0, ER_UNKNOWN_SYSTEM_VARIABLE
|
||||
SET SESSION debug="+d,status_wait_query_cache_mutex_sleep";
|
||||
SEND SELECT number from t where id > 0;
|
||||
SLEEP 1.0;
|
||||
|
||||
--connection conn2
|
||||
--error 0, ER_UNKNOWN_SYSTEM_VARIABLE
|
||||
SET SESSION debug="+d,status_wait_query_cache_mutex_sleep";
|
||||
--replace_column 1 Id 6 Time 9 Rows_sent 10 Rows_examined 11 Rows_read
|
||||
--connection default
|
||||
--replace_column 1 ### 3 ### 6 ### 9 ### 10 ### 11 ###
|
||||
SHOW PROCESSLIST;
|
||||
|
||||
--replace_column 1 ###
|
||||
SELECT id, info, state FROM INFORMATION_SCHEMA.PROCESSLIST ORDER BY id;
|
||||
|
||||
--disconnect conn
|
||||
DROP TABLE t;
|
||||
set GLOBAL query_cache_size=0;
|
||||
SET GLOBAL query_cache_size=0;
|
||||
|
Reference in New Issue
Block a user