179 changed files with 1318 additions and 9525 deletions
-
43btr/btr0cur.c
-
28buf/buf0buf.c
-
2buf/buf0rea.c
-
54dict/dict0crea.c
-
137dict/dict0dict.c
-
9dict/dict0load.c
-
8dyn/dyn0dyn.c
-
128fil/fil0fil.c
-
15fsp/fsp0fsp.c
-
235handler/ha_innodb.cc
-
20handler/i_s.cc
-
28ibuf/ibuf0ibuf.c
-
7include/buf0buf.h
-
1include/db0err.h
-
22include/dict0dict.h
-
12include/dict0mem.h
-
5include/dict0types.h
-
84include/dyn0dyn.h
-
141include/dyn0dyn.ic
-
13include/fil0fil.h
-
33include/ha_prototypes.h
-
4include/log0log.h
-
2include/log0online.h
-
10include/mtr0mtr.h
-
8include/os0file.h
-
26include/page0zip.ic
-
10include/srv0srv.h
-
40include/ut0dbg.h
-
9lock/lock0lock.c
-
16log/log0log.c
-
204log/log0online.c
-
34log/log0recv.c
-
8mem/mem0mem.c
-
149mtr/mtr0mtr.c
-
67os/os0file.c
-
27page/page0zip.c
-
16percona-suite/grep.inc
-
4percona-suite/have_response_time_distribution.inc
-
2percona-suite/have_response_time_distribution.require
-
21percona-suite/percona_bug643149.result
-
49percona-suite/percona_bug643149.test
-
1percona-suite/percona_flush_contiguous_neighbors-master.opt
-
21percona-suite/percona_flush_contiguous_neighbors.result
-
36percona-suite/percona_flush_contiguous_neighbors.test
-
1percona-suite/percona_innodb_buffer_pool_shm-master.opt
-
4percona-suite/percona_innodb_buffer_pool_shm.result
-
2percona-suite/percona_innodb_buffer_pool_shm.test
-
28percona-suite/percona_innodb_deadlock_count.result
-
61percona-suite/percona_innodb_deadlock_count.test
-
1percona-suite/percona_innodb_doublewrite_file-master.opt
-
4percona-suite/percona_innodb_doublewrite_file.result
-
2percona-suite/percona_innodb_doublewrite_file.test
-
64percona-suite/percona_innodb_expand_fast_index_creation.result
-
45percona-suite/percona_innodb_expand_fast_index_creation.test
-
55percona-suite/percona_innodb_fake_changes.result
-
49percona-suite/percona_innodb_fake_changes.test
-
19percona-suite/percona_innodb_fake_changes_locks.result
-
24percona-suite/percona_innodb_fake_changes_locks.test
-
41percona-suite/percona_innodb_kill_idle_trx.result
-
28percona-suite/percona_innodb_kill_idle_trx.test
-
45percona-suite/percona_innodb_kill_idle_trx_locks.result
-
31percona-suite/percona_innodb_kill_idle_trx_locks.test
-
2percona-suite/percona_innodb_kill_idle_trx_show.inc
-
1percona-suite/percona_innodb_use_sys_stats_table-master.opt
-
3percona-suite/percona_innodb_use_sys_stats_table.result
-
2percona-suite/percona_innodb_use_sys_stats_table.test
-
1percona-suite/percona_log_connection_error-master.opt
-
16percona-suite/percona_log_connection_error.result
-
54percona-suite/percona_log_connection_error.test
-
1percona-suite/percona_log_warnings_suppress-master.opt
-
31percona-suite/percona_log_warnings_suppress.result
-
47percona-suite/percona_log_warnings_suppress.test
-
70percona-suite/percona_processlist_row_stats.result
-
79percona-suite/percona_processlist_row_stats.test
-
117percona-suite/percona_query_cache_with_comments.inc
-
88percona-suite/percona_query_cache_with_comments.inc.backup
-
1058percona-suite/percona_query_cache_with_comments.result
-
5percona-suite/percona_query_cache_with_comments.test
-
12percona-suite/percona_query_cache_with_comments_begin.inc
-
5percona-suite/percona_query_cache_with_comments_clear.inc
-
21percona-suite/percona_query_cache_with_comments_crash.result
-
22percona-suite/percona_query_cache_with_comments_crash.test
-
1057percona-suite/percona_query_cache_with_comments_disable.result
-
3percona-suite/percona_query_cache_with_comments_disable.test
-
3percona-suite/percona_query_cache_with_comments_end.inc
-
7percona-suite/percona_query_cache_with_comments_eval.inc
-
396percona-suite/percona_query_cache_with_comments_prepared_statements.result
-
208percona-suite/percona_query_cache_with_comments_prepared_statements.test
-
8percona-suite/percona_query_cache_with_comments_show.inc
-
727percona-suite/percona_query_response_time-replication.result
-
28percona-suite/percona_query_response_time-replication.test
-
544percona-suite/percona_query_response_time-stored.result
-
36percona-suite/percona_query_response_time-stored.test
-
1307percona-suite/percona_query_response_time.result
-
20percona-suite/percona_query_response_time.test
-
1percona-suite/percona_query_response_time_flush.inc
-
8percona-suite/percona_query_response_time_show.inc
-
19percona-suite/percona_query_response_time_sleep.inc
-
3percona-suite/percona_server_variables.inc
-
382percona-suite/percona_server_variables_debug.result
@ -1,16 +0,0 @@ |
|||
perl; |
|||
|
|||
$file = $ENV{'grep_file'}; |
|||
$pattern = $ENV{'grep_pattern'}; |
|||
|
|||
open(FILE, "$file") |
|||
or die("Cannot open file $file: $!\n"); |
|||
|
|||
$lines = 0; |
|||
while(<FILE>) { |
|||
$lines++ if (/$pattern/); |
|||
} |
|||
print "$lines\n"; |
|||
|
|||
close(FILE); |
|||
EOF |
@ -1,4 +0,0 @@ |
|||
-- require r/have_response_time_distribution.require |
|||
disable_query_log; |
|||
show variables like 'have_response_time_distribution'; |
|||
enable_query_log; |
@ -1,2 +0,0 @@ |
|||
Variable_name Value |
|||
have_response_time_distribution YES |
@ -1,21 +0,0 @@ |
|||
SET @old_slow_query_log_file=@@global.slow_query_log_file; |
|||
SET GLOBAL slow_query_log=on; |
|||
SET LOCAL log_slow_verbosity='profiling'; |
|||
SET LOCAL long_query_time=0; |
|||
SET GLOBAL slow_query_log_file='MYSQLTEST_VARDIR/percona_bug643149_slow.log';; |
|||
SELECT 1; |
|||
1 |
|||
1 |
|||
# User@Host: root[root] @ localhost [] |
|||
# Thread_id: X Schema: test Last_errno: X Killed: X |
|||
# Query_time: X.X Lock_time: X.X Rows_sent: X Rows_examined: X Rows_affected: X Rows_read: X |
|||
# Bytes_sent: X Tmp_tables: X Tmp_disk_tables: X Tmp_table_sizes: X |
|||
# Profile_starting: X.X Profile_starting_cpu: X.X Profile_Opening_tables: X.X Profile_Opening_tables_cpu: X.X Profile_query_end: X.X Profile_query_end_cpu: X.X Profile_closing_tables: X.X Profile_closing_tables_cpu: X.X Profile_freeing_items: X.X Profile_freeing_items_cpu: X.X Profile_logging_slow_query: X.X Profile_logging_slow_query_cpu: X.X |
|||
# Profile_total: X.X Profile_total_cpu: X.X |
|||
# User@Host: root[root] @ localhost [] |
|||
# Thread_id: X Schema: test Last_errno: X Killed: X |
|||
# Query_time: X.X Lock_time: X.X Rows_sent: X Rows_examined: X Rows_affected: X Rows_read: X |
|||
# Bytes_sent: X Tmp_tables: X Tmp_disk_tables: X Tmp_table_sizes: X |
|||
# Profile_starting: X.X Profile_starting_cpu: X.X Profile_checking_permissions: X.X Profile_checking_permissions_cpu: X.X Profile_Opening_tables: X.X Profile_Opening_tables_cpu: X.X Profile_init: X.X Profile_init_cpu: X.X Profile_optimizing: X.X Profile_optimizing_cpu: X.X Profile_executing: X.X Profile_executing_cpu: X.X Profile_end: X.X Profile_end_cpu: X.X Profile_query_end: X.X Profile_query_end_cpu: X.X Profile_closing_tables: X.X Profile_closing_tables_cpu: X.X Profile_freeing_items: X.X Profile_freeing_items_cpu: X.X Profile_logging_slow_query: X.X Profile_logging_slow_query_cpu: X.X |
|||
# Profile_total: X.X Profile_total_cpu: X.X |
|||
SET GLOBAL slow_query_log_file=@old_slow_query_log_file; |
@ -1,49 +0,0 @@ |
|||
# |
|||
# This test suffers from server |
|||
# Bug#38124 "general_log_file" variable silently unset when using expression |
|||
# In short: |
|||
# SET GLOBAL general_log_file = @<whatever> |
|||
# SET GLOBAL slow_query_log = @<whatever> |
|||
# cause that the value of these server system variables is set to default |
|||
# instead of the assigned values. There comes no error message or warning. |
|||
# If this bug is fixed please |
|||
# 1. try this test with "let $fixed_bug38124 = 0;" |
|||
# 2. remove all workarounds if 1. was successful. |
|||
--source include/have_profiling.inc |
|||
let $fixed_bug38124 = 0; |
|||
|
|||
SET @old_slow_query_log_file=@@global.slow_query_log_file; |
|||
SET GLOBAL slow_query_log=on; |
|||
SET LOCAL log_slow_verbosity='profiling'; |
|||
SET LOCAL long_query_time=0; |
|||
|
|||
let slogfile=$MYSQLTEST_VARDIR/percona_bug643149_slow.log; |
|||
--replace_result $MYSQLTEST_VARDIR MYSQLTEST_VARDIR |
|||
--eval SET GLOBAL slow_query_log_file='$slogfile'; |
|||
|
|||
SELECT 1; |
|||
|
|||
perl; |
|||
$slogfile= $ENV{'slogfile'}; |
|||
|
|||
open(FILE, "$slogfile") or |
|||
die("Unable to read slow query log file $slogfile: $!\n"); |
|||
while(<FILE>) { |
|||
next if (!/^#/); |
|||
next if (/^# Time:/); |
|||
s/[0-9]+/X/g; |
|||
print; |
|||
} |
|||
|
|||
close(FILE); |
|||
EOF |
|||
|
|||
SET GLOBAL slow_query_log_file=@old_slow_query_log_file; |
|||
|
|||
if(!$fixed_bug38124) |
|||
{ |
|||
--disable_query_log |
|||
let $my_var = `SELECT @old_slow_query_log_file`; |
|||
eval SET @@global.slow_query_log_file = '$my_var'; |
|||
--enable_query_log |
|||
} |
@ -1 +0,0 @@ |
|||
--innodb_flush_neighbor_pages=cont |
@ -1,21 +0,0 @@ |
|||
DROP TABLE IF EXISTS t1; |
|||
CREATE TABLE t1 (id INT AUTO_INCREMENT, foo CHAR(255), PRIMARY KEY (id)) ENGINE=InnoDB; |
|||
INSERT INTO t1(foo) VALUES ('a'), ('b'); |
|||
INSERT INTO t1(foo) SELECT foo FROM t1; |
|||
INSERT INTO t1(foo) SELECT foo FROM t1; |
|||
INSERT INTO t1(foo) SELECT foo FROM t1; |
|||
INSERT INTO t1(foo) SELECT foo FROM t1; |
|||
INSERT INTO t1(foo) SELECT foo FROM t1; |
|||
INSERT INTO t1(foo) SELECT foo FROM t1; |
|||
INSERT INTO t1(foo) SELECT foo FROM t1; |
|||
INSERT INTO t1(foo) SELECT foo FROM t1; |
|||
INSERT INTO t1(foo) SELECT foo FROM t1; |
|||
INSERT INTO t1(foo) SELECT foo FROM t1; |
|||
INSERT INTO t1(foo) SELECT foo FROM t1; |
|||
INSERT INTO t1(foo) SELECT foo FROM t1; |
|||
INSERT INTO t1(foo) SELECT foo FROM t1; |
|||
INSERT INTO t1(foo) SELECT foo FROM t1; |
|||
INSERT INTO t1(foo) SELECT foo FROM t1; |
|||
INSERT INTO t1(foo) SELECT foo FROM t1; |
|||
INSERT INTO t1(foo) SELECT foo FROM t1; |
|||
DROP TABLE t1; |
@ -1,36 +0,0 @@ |
|||
# Test for innodb_flush_neighbor_pages=contiguous. |
|||
# The test is very crude: we simply overflow the buffer pool with such a number of |
|||
# new/modified pages that some flushing is bound to happen. |
|||
|
|||
--source include/have_innodb.inc |
|||
|
|||
--disable_warnings |
|||
DROP TABLE IF EXISTS t1; |
|||
--enable_warnings |
|||
|
|||
CREATE TABLE t1 (id INT AUTO_INCREMENT, foo CHAR(255), PRIMARY KEY (id)) ENGINE=InnoDB; |
|||
|
|||
INSERT INTO t1(foo) VALUES ('a'), ('b'); |
|||
INSERT INTO t1(foo) SELECT foo FROM t1; |
|||
INSERT INTO t1(foo) SELECT foo FROM t1; |
|||
INSERT INTO t1(foo) SELECT foo FROM t1; |
|||
INSERT INTO t1(foo) SELECT foo FROM t1; |
|||
INSERT INTO t1(foo) SELECT foo FROM t1; |
|||
INSERT INTO t1(foo) SELECT foo FROM t1; |
|||
INSERT INTO t1(foo) SELECT foo FROM t1; |
|||
INSERT INTO t1(foo) SELECT foo FROM t1; |
|||
INSERT INTO t1(foo) SELECT foo FROM t1; |
|||
INSERT INTO t1(foo) SELECT foo FROM t1; |
|||
INSERT INTO t1(foo) SELECT foo FROM t1; |
|||
INSERT INTO t1(foo) SELECT foo FROM t1; |
|||
INSERT INTO t1(foo) SELECT foo FROM t1; |
|||
INSERT INTO t1(foo) SELECT foo FROM t1; |
|||
INSERT INTO t1(foo) SELECT foo FROM t1; |
|||
INSERT INTO t1(foo) SELECT foo FROM t1; |
|||
INSERT INTO t1(foo) SELECT foo FROM t1; |
|||
|
|||
# TODO: cannot record a stable value here. A check of > 0 should be enough, |
|||
# but the variable is not accessible through INFORMATION_SCHEMA currently. |
|||
# SHOW GLOBAL STATUS LIKE 'Innodb_buffer_pool_pages_flushed'; |
|||
|
|||
DROP TABLE t1; |
@ -1 +0,0 @@ |
|||
--innodb_buffer_pool_shm_key=123456 |
@ -1,4 +0,0 @@ |
|||
show variables like 'innodb_buffer_pool_shm%'; |
|||
Variable_name Value |
|||
innodb_buffer_pool_shm_checksum ON |
|||
innodb_buffer_pool_shm_key 123456 |
@ -1,2 +0,0 @@ |
|||
--source include/have_innodb.inc |
|||
show variables like 'innodb_buffer_pool_shm%'; |
@ -1,28 +0,0 @@ |
|||
# Establish connection con1 (user=root) |
|||
# Establish connection con2 (user=root) |
|||
# Establish connection con3 (user=root) |
|||
# Drop test table |
|||
drop table if exists t; |
|||
# Create test table |
|||
create table t(a INT PRIMARY KEY, b INT) engine=InnoDB; |
|||
# Insert two rows to test table |
|||
insert into t values(2,1); |
|||
insert into t values(1,2); |
|||
# Switch to connection con1 |
|||
BEGIN; |
|||
SELECT b FROM t WHERE a=1 FOR UPDATE; |
|||
# Switch to connection con2 |
|||
BEGIN; |
|||
SELECT b FROM t WHERE a=2 FOR UPDATE; |
|||
# Switch to connection con1 |
|||
SELECT b FROM t WHERE a=2 FOR UPDATE; |
|||
# Switch to connection con2 |
|||
SELECT b FROM t WHERE a=1 FOR UPDATE; |
|||
# Switch to connection con1 |
|||
ROLLBACK; |
|||
# Switch to connection con2 |
|||
ROLLBACK; |
|||
# Switch to connection con3 |
|||
Deadlocks: 1 |
|||
# Drop test table |
|||
drop table t; |
@ -1,61 +0,0 @@ |
|||
--source include/have_innodb.inc |
|||
--echo # Establish connection con1 (user=root) |
|||
connect (con1,localhost,root,,); |
|||
--echo # Establish connection con2 (user=root) |
|||
connect (con2,localhost,root,,); |
|||
--echo # Establish connection con3 (user=root) |
|||
connect (con3,localhost,root,,); |
|||
--echo # Drop test table |
|||
--disable_warnings |
|||
drop table if exists t; |
|||
--enable_warnings |
|||
|
|||
--echo # Create test table |
|||
create table t(a INT PRIMARY KEY, b INT) engine=InnoDB; |
|||
--echo # Insert two rows to test table |
|||
insert into t values(2,1); |
|||
insert into t values(1,2); |
|||
|
|||
#--echo # Save current deadlock count |
|||
let $current = `SELECT VARIABLE_VALUE FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE VARIABLE_NAME = 'Innodb_deadlocks'`; |
|||
|
|||
--disable_result_log |
|||
|
|||
--echo # Switch to connection con1 |
|||
connection con1; |
|||
BEGIN; SELECT b FROM t WHERE a=1 FOR UPDATE; |
|||
|
|||
--echo # Switch to connection con2 |
|||
connection con2; |
|||
BEGIN; SELECT b FROM t WHERE a=2 FOR UPDATE; |
|||
|
|||
--echo # Switch to connection con1 |
|||
connection con1; |
|||
SEND SELECT b FROM t WHERE a=2 FOR UPDATE; |
|||
|
|||
--echo # Switch to connection con2 |
|||
connection con2; |
|||
SEND SELECT b FROM t WHERE a=1 FOR UPDATE; |
|||
|
|||
--echo # Switch to connection con1 |
|||
connection con1; |
|||
--error 0, ER_LOCK_DEADLOCK |
|||
reap; |
|||
ROLLBACK; |
|||
|
|||
--echo # Switch to connection con2 |
|||
connection con2; |
|||
--error 0, ER_LOCK_DEADLOCK |
|||
reap; |
|||
ROLLBACK; |
|||
|
|||
--echo # Switch to connection con3 |
|||
connection con3; |
|||
let $result = `SELECT VARIABLE_VALUE FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE VARIABLE_NAME = 'Innodb_deadlocks'`; |
|||
|
|||
--enable_result_log |
|||
|
|||
let $diff = `SELECT $result - $current`; |
|||
echo Deadlocks: $diff; |
|||
--echo # Drop test table |
|||
drop table t; |
@ -1 +0,0 @@ |
|||
--innodb_doublewrite_file=ib_doublewrite |
@ -1,4 +0,0 @@ |
|||
show variables like 'innodb_doublewrite%'; |
|||
Variable_name Value |
|||
innodb_doublewrite ON |
|||
innodb_doublewrite_file ib_doublewrite |
@ -1,2 +0,0 @@ |
|||
--source include/have_innodb.inc |
|||
show variables like 'innodb_doublewrite%'; |
@ -1,64 +0,0 @@ |
|||
CREATE TABLE t1( |
|||
id INT NOT NULL AUTO_INCREMENT PRIMARY KEY, |
|||
a CHAR(1) NOT NULL, |
|||
b CHAR(36) NOT NULL) ENGINE=InnoDB; |
|||
INSERT INTO t1(a,b) VALUES ('a','b'); |
|||
INSERT INTO t1(a,b) SELECT a,b FROM t1; |
|||
INSERT INTO t1(a,b) SELECT a,b FROM t1; |
|||
INSERT INTO t1(a,b) SELECT a,b FROM t1; |
|||
INSERT INTO t1(a,b) SELECT a,b FROM t1; |
|||
ALTER TABLE t1 ADD KEY (a); |
|||
affected rows: 0 |
|||
info: Records: 0 Duplicates: 0 Warnings: 0 |
|||
EXPLAIN SELECT COUNT(*) FROM t1, t1 t2 WHERE t1.a = t2.a AND t1.b = t2.b; |
|||
id 1 |
|||
select_type SIMPLE |
|||
table t1 |
|||
type ALL |
|||
possible_keys a |
|||
key NULL |
|||
key_len NULL |
|||
ref NULL |
|||
rows 16 |
|||
Extra |
|||
id 1 |
|||
select_type SIMPLE |
|||
table t2 |
|||
type ref |
|||
possible_keys a |
|||
key a |
|||
key_len 1 |
|||
ref test.t1.a |
|||
rows 1 |
|||
Extra Using where |
|||
ALTER TABLE t1 DROP KEY a; |
|||
SET expand_fast_index_creation = 1; |
|||
SELECT @@expand_fast_index_creation; |
|||
@@expand_fast_index_creation |
|||
1 |
|||
ALTER TABLE t1 ADD KEY (a); |
|||
affected rows: 0 |
|||
info: Records: 0 Duplicates: 0 Warnings: 0 |
|||
EXPLAIN SELECT COUNT(*) FROM t1, t1 t2 WHERE t1.a = t2.a AND t1.b = t2.b; |
|||
id 1 |
|||
select_type SIMPLE |
|||
table t1 |
|||
type ALL |
|||
possible_keys a |
|||
key NULL |
|||
key_len NULL |
|||
ref NULL |
|||
rows 16 |
|||
Extra |
|||
id 1 |
|||
select_type SIMPLE |
|||
table t2 |
|||
type ALL |
|||
possible_keys a |
|||
key NULL |
|||
key_len NULL |
|||
ref NULL |
|||
rows 16 |
|||
Extra Using where; Using join buffer |
|||
SET expand_fast_index_creation = 0; |
|||
DROP TABLE t1; |
@ -1,45 +0,0 @@ |
|||
--source include/have_innodb.inc |
|||
|
|||
######################################################################## |
|||
# Bug #857590: Fast index creation does not update index statistics |
|||
######################################################################## |
|||
|
|||
CREATE TABLE t1( |
|||
id INT NOT NULL AUTO_INCREMENT PRIMARY KEY, |
|||
a CHAR(1) NOT NULL, |
|||
b CHAR(36) NOT NULL) ENGINE=InnoDB; |
|||
|
|||
INSERT INTO t1(a,b) VALUES ('a','b'); |
|||
INSERT INTO t1(a,b) SELECT a,b FROM t1; |
|||
INSERT INTO t1(a,b) SELECT a,b FROM t1; |
|||
INSERT INTO t1(a,b) SELECT a,b FROM t1; |
|||
INSERT INTO t1(a,b) SELECT a,b FROM t1; |
|||
|
|||
# Check that fast index creation is used |
|||
--enable_info |
|||
ALTER TABLE t1 ADD KEY (a); |
|||
--disable_info |
|||
|
|||
# The default (wrong) plan due to bogus statistics |
|||
--vertical_results |
|||
EXPLAIN SELECT COUNT(*) FROM t1, t1 t2 WHERE t1.a = t2.a AND t1.b = t2.b; |
|||
--horizontal_results |
|||
|
|||
ALTER TABLE t1 DROP KEY a; |
|||
|
|||
SET expand_fast_index_creation = 1; |
|||
SELECT @@expand_fast_index_creation; |
|||
|
|||
# Check that stats are updated with the option enabled |
|||
|
|||
--enable_info |
|||
ALTER TABLE t1 ADD KEY (a); |
|||
--disable_info |
|||
|
|||
--vertical_results |
|||
EXPLAIN SELECT COUNT(*) FROM t1, t1 t2 WHERE t1.a = t2.a AND t1.b = t2.b; |
|||
--horizontal_results |
|||
|
|||
SET expand_fast_index_creation = 0; |
|||
|
|||
DROP TABLE t1; |
@ -1,55 +0,0 @@ |
|||
DROP TABLE IF EXISTS t1; |
|||
# Checking variables |
|||
SHOW VARIABLES LIKE 'innodb_fake_changes'; |
|||
Variable_name Value |
|||
innodb_fake_changes OFF |
|||
SELECT VARIABLE_VALUE FROM INFORMATION_SCHEMA.SESSION_VARIABLES WHERE VARIABLE_NAME='innodb_fake_changes'; |
|||
VARIABLE_VALUE |
|||
OFF |
|||
SET innodb_fake_changes=1; |
|||
SHOW VARIABLES LIKE 'innodb_fake_changes'; |
|||
Variable_name Value |
|||
innodb_fake_changes ON |
|||
SELECT VARIABLE_VALUE FROM INFORMATION_SCHEMA.SESSION_VARIABLES WHERE VARIABLE_NAME='innodb_fake_changes'; |
|||
VARIABLE_VALUE |
|||
ON |
|||
SET innodb_fake_changes=default; |
|||
SHOW VARIABLES LIKE 'innodb_fake_changes'; |
|||
Variable_name Value |
|||
innodb_fake_changes OFF |
|||
SELECT VARIABLE_VALUE FROM INFORMATION_SCHEMA.SESSION_VARIABLES WHERE VARIABLE_NAME='innodb_fake_changes'; |
|||
VARIABLE_VALUE |
|||
OFF |
|||
# Explicit COMMIT should fail when innodb_fake_changes is enabled |
|||
# DML should be fine |
|||
CREATE TABLE t1 (a INT) ENGINE=InnoDB; |
|||
INSERT INTO t1 VALUES (1); |
|||
SET autocommit=0; |
|||
SET innodb_fake_changes=1; |
|||
BEGIN; |
|||
INSERT INTO t1 VALUES (2); |
|||
UPDATE t1 SET a=0; |
|||
DELETE FROM t1 LIMIT 1; |
|||
SELECT * FROM t1; |
|||
a |
|||
1 |
|||
COMMIT; |
|||
ERROR HY000: Got error 131 during COMMIT |
|||
SET innodb_fake_changes=default; |
|||
DROP TABLE t1; |
|||
# DDL must result in error |
|||
CREATE TABLE t1 (a INT) ENGINE=InnoDB; |
|||
SET autocommit=0; |
|||
SET innodb_fake_changes=1; |
|||
BEGIN; |
|||
CREATE TABLE t2 (a INT) ENGINE=InnoDB; |
|||
ERROR HY000: Can't create table 'test.t2' (errno: 131) |
|||
DROP TABLE t1; |
|||
ERROR 42S02: Unknown table 't1' |
|||
TRUNCATE TABLE t1; |
|||
ERROR HY000: Got error 131 during COMMIT |
|||
ALTER TABLE t1 ENGINE=MyISAM; |
|||
ERROR HY000: Got error 131 during COMMIT |
|||
ROLLBACK; |
|||
SET innodb_fake_changes=default; |
|||
DROP TABLE t1; |
@ -1,49 +0,0 @@ |
|||
--source include/have_innodb.inc |
|||
|
|||
--disable_warnings |
|||
DROP TABLE IF EXISTS t1; |
|||
--enable_warnings |
|||
|
|||
|
|||
--echo # Checking variables |
|||
SHOW VARIABLES LIKE 'innodb_fake_changes'; |
|||
SELECT VARIABLE_VALUE FROM INFORMATION_SCHEMA.SESSION_VARIABLES WHERE VARIABLE_NAME='innodb_fake_changes'; |
|||
SET innodb_fake_changes=1; |
|||
SHOW VARIABLES LIKE 'innodb_fake_changes'; |
|||
SELECT VARIABLE_VALUE FROM INFORMATION_SCHEMA.SESSION_VARIABLES WHERE VARIABLE_NAME='innodb_fake_changes'; |
|||
SET innodb_fake_changes=default; |
|||
SHOW VARIABLES LIKE 'innodb_fake_changes'; |
|||
SELECT VARIABLE_VALUE FROM INFORMATION_SCHEMA.SESSION_VARIABLES WHERE VARIABLE_NAME='innodb_fake_changes'; |
|||
|
|||
--echo # Explicit COMMIT should fail when innodb_fake_changes is enabled |
|||
--echo # DML should be fine |
|||
CREATE TABLE t1 (a INT) ENGINE=InnoDB; |
|||
INSERT INTO t1 VALUES (1); |
|||
SET autocommit=0; |
|||
SET innodb_fake_changes=1; |
|||
BEGIN; |
|||
INSERT INTO t1 VALUES (2); |
|||
UPDATE t1 SET a=0; |
|||
DELETE FROM t1 LIMIT 1; |
|||
SELECT * FROM t1; |
|||
--error 1180 |
|||
COMMIT; |
|||
SET innodb_fake_changes=default; |
|||
DROP TABLE t1; |
|||
|
|||
--echo # DDL must result in error |
|||
CREATE TABLE t1 (a INT) ENGINE=InnoDB; |
|||
SET autocommit=0; |
|||
SET innodb_fake_changes=1; |
|||
BEGIN; |
|||
--error 1005 |
|||
CREATE TABLE t2 (a INT) ENGINE=InnoDB; |
|||
--error 1051 |
|||
DROP TABLE t1; |
|||
--error 1180 |
|||
TRUNCATE TABLE t1; |
|||
--error 1180 |
|||
ALTER TABLE t1 ENGINE=MyISAM; |
|||
ROLLBACK; |
|||
SET innodb_fake_changes=default; |
|||
DROP TABLE t1; |
@ -1,19 +0,0 @@ |
|||
DROP TABLE IF EXISTS t1; |
|||
# Verifying that X_LOCK not acquired |
|||
CREATE TABLE t1 (a INT) ENGINE=InnoDB; |
|||
INSERT INTO t1 VALUES (1); |
|||
SET autocommit=0; |
|||
SET innodb_fake_changes=1; |
|||
BEGIN; |
|||
SELECT * FROM t1 FOR UPDATE; |
|||
a |
|||
1 |
|||
SET innodb_lock_wait_timeout=3; |
|||
UPDATE t1 SET a=2; |
|||
ERROR HY000: Lock wait timeout exceeded; try restarting transaction |
|||
SELECT * FROM t1 LOCK IN SHARE MODE; |
|||
a |
|||
1 |
|||
ROLLBACK; |
|||
SET innodb_fake_changes=default; |
|||
DROP TABLE t1; |
@ -1,24 +0,0 @@ |
|||
--source include/have_innodb.inc |
|||
|
|||
--disable_warnings |
|||
DROP TABLE IF EXISTS t1; |
|||
--enable_warnings |
|||
|
|||
--echo # Verifying that X_LOCK not acquired |
|||
CREATE TABLE t1 (a INT) ENGINE=InnoDB; |
|||
INSERT INTO t1 VALUES (1); |
|||
--connect (conn1,localhost,root,,) |
|||
--connection conn1 |
|||
SET autocommit=0; |
|||
SET innodb_fake_changes=1; |
|||
BEGIN; |
|||
SELECT * FROM t1 FOR UPDATE; |
|||
--connection default |
|||
SET innodb_lock_wait_timeout=3; |
|||
--error 1205 |
|||
UPDATE t1 SET a=2; |
|||
SELECT * FROM t1 LOCK IN SHARE MODE; |
|||
--connection conn1 |
|||
ROLLBACK; |
|||
SET innodb_fake_changes=default; |
|||
DROP TABLE t1; |
@ -1,41 +0,0 @@ |
|||
DROP TABLE IF EXISTS t1; |
|||
SET autocommit=0; |
|||
CREATE TABLE t1 (a INT) ENGINE=InnoDB; |
|||
SHOW GLOBAL VARIABLES LIKE 'innodb_kill_idle_transaction'; |
|||
Variable_name Value |
|||
innodb_kill_idle_transaction 0 |
|||
SELECT * FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES WHERE VARIABLE_NAME='innodb_kill_idle_transaction'; |
|||
VARIABLE_NAME VARIABLE_VALUE |
|||
INNODB_KILL_IDLE_TRANSACTION 0 |
|||
SET GLOBAL innodb_kill_idle_transaction=1; |
|||
SHOW GLOBAL VARIABLES LIKE 'innodb_kill_idle_transaction'; |
|||
Variable_name Value |
|||
innodb_kill_idle_transaction 1 |
|||
SELECT * FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES WHERE VARIABLE_NAME='innodb_kill_idle_transaction'; |
|||
VARIABLE_NAME VARIABLE_VALUE |
|||
INNODB_KILL_IDLE_TRANSACTION 1 |
|||
BEGIN; |
|||
INSERT INTO t1 VALUES (1),(2),(3); |
|||
COMMIT; |
|||
SELECT * FROM t1; |
|||
a |
|||
1 |
|||
2 |
|||
3 |
|||
BEGIN; |
|||
INSERT INTO t1 VALUES (4),(5),(6); |
|||
SELECT * FROM t1; |
|||
ERROR HY000: MySQL server has gone away |
|||
SELECT * FROM t1; |
|||
a |
|||
1 |
|||
2 |
|||
3 |
|||
DROP TABLE t1; |
|||
SET GLOBAL innodb_kill_idle_transaction=0; |
|||
SHOW GLOBAL VARIABLES LIKE 'innodb_kill_idle_transaction'; |
|||
Variable_name Value |
|||
innodb_kill_idle_transaction 0 |
|||
SELECT * FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES WHERE VARIABLE_NAME='innodb_kill_idle_transaction'; |
|||
VARIABLE_NAME VARIABLE_VALUE |
|||
INNODB_KILL_IDLE_TRANSACTION 0 |
@ -1,28 +0,0 @@ |
|||
--source include/have_innodb.inc |
|||
--disable_warnings |
|||
DROP TABLE IF EXISTS t1; |
|||
--enable_warnings |
|||
|
|||
SET autocommit=0; |
|||
CREATE TABLE t1 (a INT) ENGINE=InnoDB; |
|||
|
|||
--source include/percona_innodb_kill_idle_trx_show.inc |
|||
SET GLOBAL innodb_kill_idle_transaction=1; |
|||
--source include/percona_innodb_kill_idle_trx_show.inc |
|||
|
|||
BEGIN; |
|||
INSERT INTO t1 VALUES (1),(2),(3); |
|||
COMMIT; |
|||
SELECT * FROM t1; |
|||
|
|||
BEGIN; |
|||
INSERT INTO t1 VALUES (4),(5),(6); |
|||
sleep 3; |
|||
|
|||
--enable_reconnect |
|||
--error 2006 --error CR_SERVER_GONE_ERROR |
|||
SELECT * FROM t1; |
|||
SELECT * FROM t1; |
|||
DROP TABLE t1; |
|||
SET GLOBAL innodb_kill_idle_transaction=0; |
|||
--source include/percona_innodb_kill_idle_trx_show.inc |
@ -1,45 +0,0 @@ |
|||
DROP TABLE IF EXISTS t1; |
|||
SET autocommit=0; |
|||
CREATE TABLE t1 (a INT) ENGINE=InnoDB; |
|||
SHOW GLOBAL VARIABLES LIKE 'innodb_kill_idle_transaction'; |
|||
Variable_name Value |
|||
innodb_kill_idle_transaction 0 |
|||
SELECT * FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES WHERE VARIABLE_NAME='innodb_kill_idle_transaction'; |
|||
VARIABLE_NAME VARIABLE_VALUE |
|||
INNODB_KILL_IDLE_TRANSACTION 0 |
|||
SET GLOBAL innodb_kill_idle_transaction=5; |
|||
SHOW GLOBAL VARIABLES LIKE 'innodb_kill_idle_transaction'; |
|||
Variable_name Value |
|||
innodb_kill_idle_transaction 5 |
|||
SELECT * FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES WHERE VARIABLE_NAME='innodb_kill_idle_transaction'; |
|||
VARIABLE_NAME VARIABLE_VALUE |
|||
INNODB_KILL_IDLE_TRANSACTION 5 |
|||
BEGIN; |
|||
INSERT INTO t1 VALUES (1),(2),(3); |
|||
COMMIT; |
|||
SELECT * FROM t1; |
|||
a |
|||
1 |
|||
2 |
|||
3 |
|||
### Locking rows. Lock should be released when idle trx is killed. |
|||
BEGIN; |
|||
SELECT * FROM t1 FOR UPDATE; |
|||
a |
|||
1 |
|||
2 |
|||
3 |
|||
UPDATE t1 set a=4; |
|||
SELECT * FROM t1; |
|||
a |
|||
4 |
|||
4 |
|||
4 |
|||
DROP TABLE t1; |
|||
SET GLOBAL innodb_kill_idle_transaction=0; |
|||
SHOW GLOBAL VARIABLES LIKE 'innodb_kill_idle_transaction'; |
|||
Variable_name Value |
|||
innodb_kill_idle_transaction 0 |
|||
SELECT * FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES WHERE VARIABLE_NAME='innodb_kill_idle_transaction'; |
|||
VARIABLE_NAME VARIABLE_VALUE |
|||
INNODB_KILL_IDLE_TRANSACTION 0 |
@ -1,31 +0,0 @@ |
|||
--source include/have_innodb.inc |
|||
--disable_warnings |
|||
DROP TABLE IF EXISTS t1; |
|||
--enable_warnings |
|||
|
|||
SET autocommit=0; |
|||
CREATE TABLE t1 (a INT) ENGINE=InnoDB; |
|||
|
|||
--source include/percona_innodb_kill_idle_trx_show.inc |
|||
SET GLOBAL innodb_kill_idle_transaction=5; |
|||
--source include/percona_innodb_kill_idle_trx_show.inc |
|||
|
|||
connect (conn1,localhost,root,,); |
|||
connection conn1; |
|||
|
|||
BEGIN; |
|||
INSERT INTO t1 VALUES (1),(2),(3); |
|||
COMMIT; |
|||
SELECT * FROM t1; |
|||
|
|||
--echo ### Locking rows. Lock should be released when idle trx is killed. |
|||
BEGIN; |
|||
SELECT * FROM t1 FOR UPDATE; |
|||
|
|||
connection default; |
|||
UPDATE t1 set a=4; |
|||
|
|||
SELECT * FROM t1; |
|||
DROP TABLE t1; |
|||
SET GLOBAL innodb_kill_idle_transaction=0; |
|||
--source include/percona_innodb_kill_idle_trx_show.inc |
@ -1,2 +0,0 @@ |
|||
SHOW GLOBAL VARIABLES LIKE 'innodb_kill_idle_transaction'; |
|||
SELECT * FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES WHERE VARIABLE_NAME='innodb_kill_idle_transaction'; |
@ -1 +0,0 @@ |
|||
--innodb_use_sys_stats_table |
@ -1,3 +0,0 @@ |
|||
show variables like 'innodb_use_sys_stats%'; |
|||
Variable_name Value |
|||
innodb_use_sys_stats_table ON |
@ -1,2 +0,0 @@ |
|||
--source include/have_innodb.inc |
|||
show variables like 'innodb_use_sys_stats%'; |
@ -1 +0,0 @@ |
|||
--log-error |
@ -1,16 +0,0 @@ |
|||
SET @old_max_connections = @@max_connections; |
|||
SET @old_log_warnings = @@log_warnings; |
|||
SET GLOBAL max_connections=2; |
|||
SET GLOBAL LOG_WARNINGS = 0; |
|||
connect(localhost,root,,test,port,socket); |
|||
ERROR HY000: Too many connections |
|||
SET GLOBAL LOG_WARNINGS = 1; |
|||
connect(localhost,root,,test,port,socket); |
|||
ERROR HY000: Too many connections |
|||
SET GLOBAL LOG_WARNINGS = 0; |
|||
connect(localhost,root,,test,port,socket); |
|||
ERROR HY000: Too many connections |
|||
SET GLOBAL max_connections = @old_max_connections; |
|||
SET GLOBAL log_warnings = @old_log_warnings; |
|||
[log_grep.inc] file: percona.log_connection_error.err pattern: Too many connections |
|||
[log_grep.inc] lines: 1 |
@ -1,54 +0,0 @@ |
|||
--source include/not_embedded.inc |
|||
|
|||
connect (main,localhost,root,,); |
|||
connection main; |
|||
SET @old_max_connections = @@max_connections; |
|||
SET @old_log_warnings = @@log_warnings; |
|||
SET GLOBAL max_connections=2; |
|||
let $port=`SELECT Variable_value FROM INFORMATION_SCHEMA.SESSION_VARIABLES WHERE Variable_name LIKE 'port'`; |
|||
let $socket=`SELECT Variable_value FROM INFORMATION_SCHEMA.SESSION_VARIABLES WHERE Variable_name LIKE 'socket'`; |
|||
|
|||
SET GLOBAL LOG_WARNINGS = 0; |
|||
--connect (conn0,localhost,root,,) |
|||
connection conn0; |
|||
replace_result $port port $socket socket; |
|||
--error 1040 |
|||
--connect(conn1,localhost,root,,) |
|||
disconnect conn0; |
|||
SLEEP 0.1; # tsarev: hack, but i don't know (and didn't find) how right |
|||
|
|||
connection main; |
|||
SET GLOBAL LOG_WARNINGS = 1; |
|||
--connect (conn1,localhost,root,,) |
|||
replace_result $port port $socket socket; |
|||
--error 1040 |
|||
--connect (conn0,localhost,root,,) |
|||
disconnect conn1; |
|||
SLEEP 0.1; # tsarev: hack, but i don't know (and didn't find) how right |
|||
|
|||
connection main; |
|||
SET GLOBAL LOG_WARNINGS = 0; |
|||
--connect (conn0,localhost,root,,) |
|||
replace_result $port port $socket socket; |
|||
--error 1040 |
|||
--connect(conn1,localhost,root,,) |
|||
disconnect conn0; |
|||
SLEEP 0.1; # tsarev: hack, but i don't know (and didn't find) how right |
|||
|
|||
connection main; |
|||
SET GLOBAL max_connections = @old_max_connections; |
|||
SET GLOBAL log_warnings = @old_log_warnings; |
|||
let $log_error_= `SELECT @@GLOBAL.log_error`; |
|||
if(!`select LENGTH('$log_error_')`) |
|||
{ |
|||
# MySQL Server on windows is started with --console and thus |
|||
# does not know the location of its .err log, use default location |
|||
let $log_error_ = $MYSQLTEST_VARDIR/log/mysqld.1.err; |
|||
} |
|||
|
|||
--let log_error=$log_error_ |
|||
--let log_file=percona.log_connection_error.err |
|||
--let log_file_full_path=$log_error |
|||
--let grep_pattern= Too many connections |
|||
--source include/log_grep.inc |
|||
|
@ -1 +0,0 @@ |
|||
--log-error |
@ -1,31 +0,0 @@ |
|||
SET @old_log_warnings = @@log_warnings; |
|||
SET @old_log_warnings_suppress = @@log_warnings_suppress; |
|||
DROP TABLE IF EXISTS t1; |
|||
CREATE TABLE t1 (a VARCHAR(36), b VARCHAR(20)); |
|||
SET GLOBAL log_warnings_suppress=''; |
|||
SET GLOBAL LOG_WARNINGS=0; |
|||
SHOW GLOBAL VARIABLES LIKE 'log_warnings_suppress'; |
|||
Variable_name Value |
|||
log_warnings_suppress |
|||
INSERT INTO t1 VALUES(UUID(), 'suppress_1592'); |
|||
Warnings: |
|||
Note 1592 Unsafe statement written to the binary log using statement format since BINLOG_FORMAT = STATEMENT. Statement is unsafe because it uses a system function that may return a different value on the slave. |
|||
SET GLOBAL LOG_WARNINGS=1; |
|||
INSERT INTO t1 VALUES(UUID(), 'suppress_1592'); |
|||
Warnings: |
|||
Note 1592 Unsafe statement written to the binary log using statement format since BINLOG_FORMAT = STATEMENT. Statement is unsafe because it uses a system function that may return a different value on the slave. |
|||
SET GLOBAL log_warnings_suppress='1592'; |
|||
SET GLOBAL LOG_WARNINGS=0; |
|||
INSERT INTO t1 VALUES(UUID(), 'suppress_1592'); |
|||
Warnings: |
|||
Note 1592 Unsafe statement written to the binary log using statement format since BINLOG_FORMAT = STATEMENT. Statement is unsafe because it uses a system function that may return a different value on the slave. |
|||
SET GLOBAL LOG_WARNINGS=1; |
|||
INSERT INTO t1 VALUES(UUID(), 'suppress_1592'); |
|||
Warnings: |
|||
Note 1592 Unsafe statement written to the binary log using statement format since BINLOG_FORMAT = STATEMENT. Statement is unsafe because it uses a system function that may return a different value on the slave. |
|||
DROP TABLE t1; |
|||
SET GLOBAL log_warnings = @old_log_warnings; |
|||
SET GLOBAL log_warnings_suppress = @old_log_warnings_suppress; |
|||
# Count the number of times the "Unsafe" message was printed |
|||
# to the error log. |
|||
Occurrences: 1 |
@ -1,47 +0,0 @@ |
|||
-- source include/have_log_bin.inc |
|||
-- source include/have_binlog_format_statement.inc |
|||
|
|||
SET @old_log_warnings = @@log_warnings; |
|||
SET @old_log_warnings_suppress = @@log_warnings_suppress; |
|||
|
|||
--disable_warnings |
|||
DROP TABLE IF EXISTS t1; |
|||
--enable_warnings |
|||
CREATE TABLE t1 (a VARCHAR(36), b VARCHAR(20)); |
|||
SET GLOBAL log_warnings_suppress=''; |
|||
SET GLOBAL LOG_WARNINGS=0; |
|||
SHOW GLOBAL VARIABLES LIKE 'log_warnings_suppress'; |
|||
INSERT INTO t1 VALUES(UUID(), 'suppress_1592'); |
|||
SET GLOBAL LOG_WARNINGS=1; |
|||
INSERT INTO t1 VALUES(UUID(), 'suppress_1592'); |
|||
SET GLOBAL log_warnings_suppress='1592'; |
|||
SET GLOBAL LOG_WARNINGS=0; |
|||
INSERT INTO t1 VALUES(UUID(), 'suppress_1592'); |
|||
SET GLOBAL LOG_WARNINGS=1; |
|||
INSERT INTO t1 VALUES(UUID(), 'suppress_1592'); |
|||
DROP TABLE t1; |
|||
|
|||
SET GLOBAL log_warnings = @old_log_warnings; |
|||
SET GLOBAL log_warnings_suppress = @old_log_warnings_suppress; |
|||
|
|||
let $log_error_= `SELECT @@GLOBAL.log_error`; |
|||
if(!`select LENGTH('$log_error_')`) |
|||
{ |
|||
# MySQL Server on windows is started with --console and thus |
|||
# does not know the location of its .err log, use default location |
|||
let $log_error_ = $MYSQLTEST_VARDIR/log/mysqld.1.err; |
|||
} |
|||
# Assign env variable LOG_ERROR |
|||
let LOG_ERROR=$log_error_; |
|||
|
|||
--echo # Count the number of times the "Unsafe" message was printed |
|||
--echo # to the error log. |
|||
|
|||
perl; |
|||
use strict; |
|||
my $log_error= $ENV{'LOG_ERROR'} or die "LOG_ERROR not set"; |
|||
open(FILE, "$log_error") or die("Unable to open $log_error: $!\n"); |
|||
my $count = () = grep(/suppress_1592/g,<FILE>); |
|||
print "Occurrences: $count\n"; |
|||
close(FILE); |
|||
EOF |
@ -1,70 +0,0 @@ |
|||
DROP TABLE IF EXISTS t1; |
|||
DROP TABLE IF EXISTS t2; |
|||
CREATE TABLE t2 (a INT); |
|||
INSERT INTO t2 VALUES(10); |
|||
INSERT INTO t2 VALUES(10); |
|||
INSERT INTO t2 VALUES(20); |
|||
INSERT INTO t2 VALUES(10); |
|||
INSERT INTO t2 VALUES(20); |
|||
SET DEBUG_SYNC= 'locked_table_name SIGNAL thread1_ready WAIT_FOR threads_dumped'; |
|||
CREATE TABLE t1 (a INT); |
|||
SET DEBUG_SYNC= 'now WAIT_FOR thread1_ready'; |
|||
SET DEBUG_SYNC= 'execute_command_after_close_tables SIGNAL thread2_ready WAIT_FOR threads_dumped'; |
|||
SELECT a FROM t2 WHERE a > 15; |
|||
SET DEBUG_SYNC= 'now WAIT_FOR thread2_ready'; |
|||
SHOW PROCESSLIST; |
|||
Id User Host db Command Time State Info Rows_sent Rows_examined Rows_read |
|||
### root ### test Query ### ### SHOW PROCESSLIST 0 0 2 |
|||
### root ### test Query ### ### CREATE TABLE t1 (a INT) 0 0 1 |
|||
### root ### test Query ### ### SELECT a FROM t2 WHERE a > 15 2 5 6 |
|||
SELECT id, info, rows_sent, rows_examined, rows_read FROM INFORMATION_SCHEMA.PROCESSLIST ORDER BY id; |
|||
id info rows_sent rows_examined rows_read |
|||
### SELECT id, info, rows_sent, rows_examined, rows_read FROM INFORMATION_SCHEMA.PROCESSLIST ORDER BY id 0 0 1 |
|||
### CREATE TABLE t1 (a INT) 0 0 1 |
|||
### SELECT a FROM t2 WHERE a > 15 2 5 6 |
|||
SET DEBUG_SYNC= 'now SIGNAL threads_dumped'; |
|||
a |
|||
20 |
|||
20 |
|||
SET DEBUG_SYNC= 'sent_row SIGNAL thread1_ready WAIT_FOR threads_dumped'; |
|||
SELECT a FROM t2 WHERE a < 15; |
|||
SET DEBUG_SYNC= 'now WAIT_FOR thread1_ready'; |
|||
SET DEBUG_SYNC= 'sent_row SIGNAL thread2_ready WAIT_FOR threads_dumped'; |
|||
SELECT a FROM t2 WHERE a > 15; |
|||
SET DEBUG_SYNC= 'now WAIT_FOR thread2_ready'; |
|||
SHOW PROCESSLIST; |
|||
Id User Host db Command Time State Info Rows_sent Rows_examined Rows_read |
|||
### root ### test Query ### ### SHOW PROCESSLIST 0 0 4 |
|||
### root ### test Query ### ### SELECT a FROM t2 WHERE a < 15 1 0 1 |
|||
### root ### test Query ### ### SELECT a FROM t2 WHERE a > 15 1 0 3 |
|||
SELECT id, info, rows_sent, rows_examined, rows_read FROM INFORMATION_SCHEMA.PROCESSLIST ORDER BY id; |
|||
id info rows_sent rows_examined rows_read |
|||
### SELECT id, info, rows_sent, rows_examined, rows_read FROM INFORMATION_SCHEMA.PROCESSLIST ORDER BY id 0 0 1 |
|||
### SELECT a FROM t2 WHERE a < 15 1 0 1 |
|||
### SELECT a FROM t2 WHERE a > 15 1 0 3 |
|||
SET DEBUG_SYNC= 'now SIGNAL threads_dumped'; |
|||
a |
|||
10 |
|||
10 |
|||
10 |
|||
a |
|||
20 |
|||
20 |
|||
SET DEBUG_SYNC= 'execute_command_after_close_tables SIGNAL thread1_ready WAIT_FOR threads_dumped'; |
|||
UPDATE t2 SET a = 15 WHERE a = 20; |
|||
SET DEBUG_SYNC= 'now WAIT_FOR thread1_ready'; |
|||
SET DEBUG_SYNC= 'execute_command_after_close_tables SIGNAL thread2_ready WAIT_FOR threads_dumped'; |
|||
UPDATE t2 SET a = 15 WHERE a = 10; |
|||
SET DEBUG_SYNC= 'now WAIT_FOR thread2_ready'; |
|||
SHOW PROCESSLIST; |
|||
Id User Host db Command Time State Info Rows_sent Rows_examined Rows_read |
|||
### root ### test Query ### ### SHOW PROCESSLIST 0 0 4 |
|||
### root ### test Query ### ### UPDATE t2 SET a = 15 WHERE a = 20 0 5 6 |
|||
### root ### test Query ### ### UPDATE t2 SET a = 15 WHERE a = 10 0 5 6 |
|||
SELECT id, info, rows_sent, rows_examined, rows_read FROM INFORMATION_SCHEMA.PROCESSLIST ORDER BY id; |
|||
id info rows_sent rows_examined rows_read |
|||
### SELECT id, info, rows_sent, rows_examined, rows_read FROM INFORMATION_SCHEMA.PROCESSLIST ORDER BY id 0 0 1 |
|||
### UPDATE t2 SET a = 15 WHERE a = 20 0 5 6 |
|||
### UPDATE t2 SET a = 15 WHERE a = 10 0 5 6 |
|||
SET DEBUG_SYNC= 'now SIGNAL threads_dumped'; |
|||
DROP TABLES t1, t2; |
@ -1,79 +0,0 @@ |
|||
# Testing of INFORMATION_SCHEMA.PROCESSLIST fields ROWS_SENT, ROWS_EXAMINED, ROWS_READ |
|||
--source include/have_debug_sync.inc |
|||
|
|||
--disable_warnings |
|||
DROP TABLE IF EXISTS t1; |
|||
DROP TABLE IF EXISTS t2; |
|||
--enable_warnings |
|||
|
|||
CREATE TABLE t2 (a INT); |
|||
INSERT INTO t2 VALUES(10); |
|||
INSERT INTO t2 VALUES(10); |
|||
INSERT INTO t2 VALUES(20); |
|||
INSERT INTO t2 VALUES(10); |
|||
INSERT INTO t2 VALUES(20); |
|||
|
|||
--connect (conn1, localhost, root, ,) |
|||
--connect (conn2, localhost, root, ,) |
|||
|
|||
--connection conn1 |
|||
SET DEBUG_SYNC= 'locked_table_name SIGNAL thread1_ready WAIT_FOR threads_dumped'; |
|||
send CREATE TABLE t1 (a INT); |
|||
--connection default |
|||
SET DEBUG_SYNC= 'now WAIT_FOR thread1_ready'; |
|||
|
|||
--connection conn2 |
|||
SET DEBUG_SYNC= 'execute_command_after_close_tables SIGNAL thread2_ready WAIT_FOR threads_dumped'; |
|||
send SELECT a FROM t2 WHERE a > 15; |
|||
--connection default |
|||
SET DEBUG_SYNC= 'now WAIT_FOR thread2_ready'; |
|||
|
|||
--source include/percona_processlist_row_stats_show.inc |
|||
|
|||
--connection conn1 |
|||
reap; |
|||
--connection conn2 |
|||
reap; |
|||
|
|||
--connection conn1 |
|||
SET DEBUG_SYNC= 'sent_row SIGNAL thread1_ready WAIT_FOR threads_dumped'; |
|||
send SELECT a FROM t2 WHERE a < 15; |
|||
--connection default |
|||
SET DEBUG_SYNC= 'now WAIT_FOR thread1_ready'; |
|||
|
|||
--connection conn2 |
|||
SET DEBUG_SYNC= 'sent_row SIGNAL thread2_ready WAIT_FOR threads_dumped'; |
|||
send SELECT a FROM t2 WHERE a > 15; |
|||
--connection default |
|||
SET DEBUG_SYNC= 'now WAIT_FOR thread2_ready'; |
|||
|
|||
--source include/percona_processlist_row_stats_show.inc |
|||
|
|||
--connection conn1 |
|||
reap; |
|||
--connection conn2 |
|||
reap; |
|||
|
|||
--connection conn1 |
|||
SET DEBUG_SYNC= 'execute_command_after_close_tables SIGNAL thread1_ready WAIT_FOR threads_dumped'; |
|||
send UPDATE t2 SET a = 15 WHERE a = 20; |
|||
--connection default |
|||
SET DEBUG_SYNC= 'now WAIT_FOR thread1_ready'; |
|||
|
|||
--connection conn2 |
|||
SET DEBUG_SYNC= 'execute_command_after_close_tables SIGNAL thread2_ready WAIT_FOR threads_dumped'; |
|||
send UPDATE t2 SET a = 15 WHERE a = 10; |
|||
--connection default |
|||
SET DEBUG_SYNC= 'now WAIT_FOR thread2_ready'; |
|||
|
|||
--source include/percona_processlist_row_stats_show.inc |
|||
|
|||
--connection conn1 |
|||
reap; |
|||
--connection conn2 |
|||
reap; |
|||
|
|||
--connection default |
|||
disconnect conn1; |
|||
disconnect conn2; |
|||
DROP TABLES t1, t2; |
@ -1,117 +0,0 @@ |
|||
--source include/percona_query_cache_with_comments_clear.inc |
|||
let $query=/* with comment first */select * from t1; |
|||
eval $query; |
|||
--source include/percona_query_cache_with_comments_eval.inc |
|||
|
|||
let $query=# with comment first |
|||
select * from t1; |
|||
--source include/percona_query_cache_with_comments_eval.inc |
|||
|
|||
let $query=-- with comment first |
|||
select * from t1; |
|||
--source include/percona_query_cache_with_comments_eval.inc |
|||
|
|||
let $query=/* with comment first and "quote" */select * from t1; |
|||
--source include/percona_query_cache_with_comments_eval.inc |
|||
|
|||
let $query=# with comment first and "quote" |
|||
select * from t1; |
|||
--source include/percona_query_cache_with_comments_eval.inc |
|||
|
|||
let $query=-- with comment first and "quote" |
|||
select * from t1; |
|||
--source include/percona_query_cache_with_comments_eval.inc |
|||
|
|||
let $query= |
|||
/* with comment and whitespaces first */select * from t1; |
|||
--source include/percona_query_cache_with_comments_eval.inc |
|||
|
|||
let $query= |
|||
# with comment and whitespaces first |
|||
select * from t1; |
|||
--source include/percona_query_cache_with_comments_eval.inc |
|||
|
|||
let $query= |
|||
-- with comment and whitespaces first |
|||
select * from t1; |
|||
--source include/percona_query_cache_with_comments_eval.inc |
|||
|
|||
let $internal=* internal comment *; |
|||
|
|||
let $query=select * /$internal/ from t1; |
|||
--source include/percona_query_cache_with_comments_eval.inc |
|||
let $query=select */$internal/ from t1; |
|||
--source include/percona_query_cache_with_comments_eval.inc |
|||
let $query=select */$internal/from t1; |
|||
--source include/percona_query_cache_with_comments_eval.inc |
|||
|
|||
let $internal=* internal comment with "quote" *; |
|||
|
|||
let $query=select * /$internal/ from t1; |
|||
--source include/percona_query_cache_with_comments_eval.inc |
|||
let $query=select */$internal/ from t1; |
|||
--source include/percona_query_cache_with_comments_eval.inc |
|||
let $query=select */$internal/from t1; |
|||
--source include/percona_query_cache_with_comments_eval.inc |
|||
|
|||
let $query=select * from t1 |
|||
; |
|||
--source include/percona_query_cache_with_comments_eval.inc |
|||
|
|||
let $query=select * from t1 ; |
|||
--source include/percona_query_cache_with_comments_eval.inc |
|||
|
|||
let $query=select * from t1 ; |
|||
--source include/percona_query_cache_with_comments_eval.inc |
|||
|
|||
let $query=select * from t1 |
|||
/* comment in the end */; |
|||
--source include/percona_query_cache_with_comments_eval.inc |
|||
|
|||
let $query=select * from t1 |
|||
/* *\/ */; |
|||
--source include/percona_query_cache_with_comments_eval.inc |
|||
|
|||
let $query=select * from t1 |
|||
/* comment in the end */ |
|||
; |
|||
--source include/percona_query_cache_with_comments_eval.inc |
|||
|
|||
let $query=select * from t1 #comment in the end; |
|||
--source include/percona_query_cache_with_comments_eval.inc |
|||
|
|||
let $query=select * from t1 #comment in the end |
|||
; |
|||
--source include/percona_query_cache_with_comments_eval.inc |
|||
|
|||
let $query=select * from t1 -- comment in the end; |
|||
--source include/percona_query_cache_with_comments_eval.inc |
|||
|
|||
let $query=select * from t1 -- comment in the end |
|||
; |
|||
--source include/percona_query_cache_with_comments_eval.inc |
|||
|
|||
let $query=select */* a comment \*/from t1; |
|||
--source include/percona_query_cache_with_comments_eval.inc |
|||
|
|||
let $query=select *# a comment \\ |
|||
from t1; |
|||
--source include/percona_query_cache_with_comments_eval.inc |
|||
|
|||
let $query=select *-- a comment \\ |
|||
from t1; |
|||
--source include/percona_query_cache_with_comments_eval.inc |
|||
|
|||
let $query=select "\\\\"" /* not a comment */" from t1; |
|||
--source include/percona_query_cache_with_comments_eval.inc |
|||
|
|||
let $query=select "\\\\"" /*! not a comment */" from t1; |
|||
--source include/percona_query_cache_with_comments_eval.inc |
|||
|
|||
# following two queries related to bug #856404. |
|||
# There are different queries, but opt_query_cache_strip_comments thinks that they are equal. |
|||
let $query=select ' \' ' from t1; |
|||
--source include/percona_query_cache_with_comments_eval.inc |
|||
|
|||
let $query=select ' \' /* comment inside quotes with internal backslash quote */' from t1; |
|||
--source include/percona_query_cache_with_comments_eval.inc |
@ -1,88 +0,0 @@ |
|||
--source include/percona_query_cache_with_comments_clear.inc |
|||
let $query=/* with comment first */select * from t1; |
|||
eval $query; |
|||
--source include/percona_query_cache_with_comments_eval.inc |
|||
|
|||
let $query=# with comment first |
|||
select * from t1; |
|||
--source include/percona_query_cache_with_comments_eval.inc |
|||
|
|||
let $query=-- with comment first |
|||
select * from t1; |
|||
--source include/percona_query_cache_with_comments_eval.inc |
|||
|
|||
let $query=/* with comment first and "quote" */select * from t1; |
|||
--source include/percona_query_cache_with_comments_eval.inc |
|||
|
|||
let $query=# with comment first and "quote" |
|||
select * from t1; |
|||
--source include/percona_query_cache_with_comments_eval.inc |
|||
|
|||
let $query=-- with comment first and "quote" |
|||
select * from t1; |
|||
--source include/percona_query_cache_with_comments_eval.inc |
|||
|
|||
let $query= |
|||
/* with comment and whitespaces first */select * from t1; |
|||
--source include/percona_query_cache_with_comments_eval.inc |
|||
|
|||
let $query= |
|||
# with comment and whitespaces first |
|||
select * from t1; |
|||
--source include/percona_query_cache_with_comments_eval.inc |
|||
|
|||
let $query= |
|||
-- with comment and whitespaces first |
|||
select * from t1; |
|||
--source include/percona_query_cache_with_comments_eval.inc |
|||
|
|||
let $internal=* internal comment *; |
|||
|
|||
let $query=select * /$internal/ from t1; |
|||
--source include/percona_query_cache_with_comments_eval.inc |
|||
let $query=select */$internal/ from t1; |
|||
--source include/percona_query_cache_with_comments_eval.inc |
|||
let $query=select */$internal/from t1; |
|||
--source include/percona_query_cache_with_comments_eval.inc |
|||
|
|||
let $internal=* internal comment with "quote" *; |
|||
|
|||
let $query=select * /$internal/ from t1; |
|||
--source include/percona_query_cache_with_comments_eval.inc |
|||
let $query=select */$internal/ from t1; |
|||
--source include/percona_query_cache_with_comments_eval.inc |
|||
let $query=select */$internal/from t1; |
|||
--source include/percona_query_cache_with_comments_eval.inc |
|||
|
|||
let $query=select * from t1 |
|||
; |
|||
--source include/percona_query_cache_with_comments_eval.inc |
|||
|
|||
let $query=select * from t1 ; |
|||
--source include/percona_query_cache_with_comments_eval.inc |
|||
|
|||
let $query=select * from t1 ; |
|||
--source include/percona_query_cache_with_comments_eval.inc |
|||
|
|||
let $query=select * from t1 |
|||
/* comment in the end */; |
|||
--source include/percona_query_cache_with_comments_eval.inc |
|||
|
|||
let $query=select * from t1 |
|||
/* comment in the end */ |
|||
; |
|||
--source include/percona_query_cache_with_comments_eval.inc |
|||
|
|||
let $query=select * from t1 #comment in the end; |
|||
--source include/percona_query_cache_with_comments_eval.inc |
|||
|
|||
let $query=select * from t1 #comment in the end |
|||
; |
|||
--source include/percona_query_cache_with_comments_eval.inc |
|||
|
|||
let $query=select * from t1 -- comment in the end; |
|||
--source include/percona_query_cache_with_comments_eval.inc |
|||
|
|||
let $query=select * from t1 -- comment in the end |
|||
; |
|||
--source include/percona_query_cache_with_comments_eval.inc |
1058
percona-suite/percona_query_cache_with_comments.result
File diff suppressed because it is too large
View File
File diff suppressed because it is too large
View File
@ -1,5 +0,0 @@ |
|||
--disable_ps_protocol |
|||
set global query_cache_strip_comments=ON; |
|||
-- source include/percona_query_cache_with_comments_begin.inc |
|||
-- source include/percona_query_cache_with_comments.inc |
|||
-- source include/percona_query_cache_with_comments_end.inc |
@ -1,12 +0,0 @@ |
|||
-- source include/have_query_cache.inc |
|||
|
|||
set GLOBAL query_cache_size=1355776; |
|||
|
|||
--disable_warnings |
|||
drop table if exists t1; |
|||
--enable_warnings |
|||
|
|||
create table t1 (a int not null); |
|||
insert into t1 values (1),(2),(3); |
|||
|
|||
--source include/percona_query_cache_with_comments_clear.inc |
@ -1,5 +0,0 @@ |
|||
# Reset query cache variables. |
|||
flush query cache; # This crashed in some versions |
|||
flush query cache; # This crashed in some versions |
|||
reset query cache; |
|||
flush status; |
@ -1,21 +0,0 @@ |
|||
set GLOBAL query_cache_size=1355776; |
|||
drop table if exists t1; |
|||
create table t1 (a int not null); |
|||
insert into t1 values (1),(2),(3); |
|||
flush query cache; |
|||
flush query cache; |
|||
reset query cache; |
|||
flush status; |
|||
( select * from t1 ); |
|||
a |
|||
1 |
|||
2 |
|||
3 |
|||
/*!40101 SET @OLD_SQL_MODE := @@SQL_MODE, @@SQL_MODE := REPLACE(REPLACE(@@SQL_MODE, 'ANSI_QUOTES', ''), ',,', ','), @OLD_QUOTE := @@SQL_QUOTE_SHOW_CREATE, @@SQL_QUOTE_SHOW_CREATE := 1 */; |
|||
/* only comment */; |
|||
# only comment |
|||
; |
|||
-- only comment |
|||
; |
|||
DROP TABLE t1; |
|||
SET GLOBAL query_cache_size= default; |
@ -1,22 +0,0 @@ |
|||
-- source include/have_query_cache.inc |
|||
set GLOBAL query_cache_size=1355776; |
|||
--disable_warnings |
|||
drop table if exists t1; |
|||
--enable_warnings |
|||
create table t1 (a int not null); |
|||
insert into t1 values (1),(2),(3); |
|||
flush query cache; # This crashed in some versions |
|||
flush query cache; # This crashed in some versions |
|||
reset query cache; |
|||
flush status; |
|||
( select * from t1 ); |
|||
/*!40101 SET @OLD_SQL_MODE := @@SQL_MODE, @@SQL_MODE := REPLACE(REPLACE(@@SQL_MODE, 'ANSI_QUOTES', ''), ',,', ','), @OLD_QUOTE := @@SQL_QUOTE_SHOW_CREATE, @@SQL_QUOTE_SHOW_CREATE := 1 */; |
|||
/* only comment */; |
|||
let query=# only comment |
|||
; |
|||
eval $query; |
|||
let query=-- only comment |
|||
; |
|||
eval $query; |
|||
DROP TABLE t1; |
|||
SET GLOBAL query_cache_size= default; |
1057
percona-suite/percona_query_cache_with_comments_disable.result
File diff suppressed because it is too large
View File
File diff suppressed because it is too large
View File
@ -1,3 +0,0 @@ |
|||
-- source include/percona_query_cache_with_comments_begin.inc |
|||
-- source include/percona_query_cache_with_comments.inc |
|||
-- source include/percona_query_cache_with_comments_end.inc |
@ -1,3 +0,0 @@ |
|||
DROP TABLE t1; |
|||
SET GLOBAL query_cache_size=default; |
|||
set global query_cache_strip_comments=OFF; |
@ -1,7 +0,0 @@ |
|||
echo -----------------------------------------------------; |
|||
echo $query; |
|||
echo -----------------------------------------------------; |
|||
--source include/percona_query_cache_with_comments_show.inc |
|||
eval $query; |
|||
eval $query; |
|||
--source include/percona_query_cache_with_comments_show.inc |
@ -1,396 +0,0 @@ |
|||
set GLOBAL query_cache_size=1355776; |
|||
flush query cache; |
|||
flush query cache; |
|||
reset query cache; |
|||
flush status; |
|||
drop table if exists t1; |
|||
create table t1 (a int not null); |
|||
insert into t1 values (1),(2),(3); |
|||
set global query_cache_strip_comments=ON; |
|||
show status like "Qcache_queries_in_cache"; |
|||
Variable_name Value |
|||
Qcache_queries_in_cache 0 |
|||
show status like "Qcache_inserts"; |
|||
Variable_name Value |
|||
Qcache_inserts 0 |
|||
show status like "Qcache_hits"; |
|||
Variable_name Value |
|||
Qcache_hits 0 |
|||
prepare stmt from '/* with comment */ select * from t1'; |
|||
execute stmt; |
|||
a |
|||
1 |
|||
2 |
|||
3 |
|||
show status like "Qcache_queries_in_cache"; |
|||
Variable_name Value |
|||
Qcache_queries_in_cache 1 |
|||
show status like "Qcache_inserts"; |
|||
Variable_name Value |
|||
Qcache_inserts 1 |
|||
show status like "Qcache_hits"; |
|||
Variable_name Value |
|||
Qcache_hits 0 |
|||
execute stmt; |
|||
a |
|||
1 |
|||
2 |
|||
3 |
|||
execute stmt; |
|||
a |
|||
1 |
|||
2 |
|||
3 |
|||
execute stmt; |
|||
a |
|||
1 |
|||
2 |
|||
3 |
|||
execute stmt; |
|||
a |
|||
1 |
|||
2 |
|||
3 |
|||
execute stmt; |
|||
a |
|||
1 |
|||
2 |
|||
3 |
|||
show status like "Qcache_queries_in_cache"; |
|||
Variable_name Value |
|||
Qcache_queries_in_cache 1 |
|||
show status like "Qcache_inserts"; |
|||
Variable_name Value |
|||
Qcache_inserts 1 |
|||
show status like "Qcache_hits"; |
|||
Variable_name Value |
|||
Qcache_hits 5 |
|||
prepare stmt from 'select * from t1'; |
|||
execute stmt; |
|||
a |
|||
1 |
|||
2 |
|||
3 |
|||
show status like "Qcache_queries_in_cache"; |
|||
Variable_name Value |
|||
Qcache_queries_in_cache 1 |
|||
show status like "Qcache_inserts"; |
|||
Variable_name Value |
|||
Qcache_inserts 1 |
|||
show status like "Qcache_hits"; |
|||
Variable_name Value |
|||
Qcache_hits 6 |
|||
prepare stmt from 'select * /*internal comment*/from t1'; |
|||
execute stmt; |
|||
a |
|||
1 |
|||
2 |
|||
3 |
|||
show status like "Qcache_queries_in_cache"; |
|||
Variable_name Value |
|||
Qcache_queries_in_cache 1 |
|||
show status like "Qcache_inserts"; |
|||
Variable_name Value |
|||
Qcache_inserts 1 |
|||
show status like "Qcache_hits"; |
|||
Variable_name Value |
|||
Qcache_hits 7 |
|||
prepare stmt from 'select * /*internal comment*/ from t1'; |
|||
execute stmt; |
|||
a |
|||
1 |
|||
2 |
|||
3 |
|||
show status like "Qcache_queries_in_cache"; |
|||
Variable_name Value |
|||
Qcache_queries_in_cache 1 |
|||
show status like "Qcache_inserts"; |
|||
Variable_name Value |
|||
Qcache_inserts 1 |
|||
show status like "Qcache_hits"; |
|||
Variable_name Value |
|||
Qcache_hits 8 |
|||
prepare stmt from 'select * from t1 /* at the end */'; |
|||
execute stmt; |
|||
a |
|||
1 |
|||
2 |
|||
3 |
|||
show status like "Qcache_queries_in_cache"; |
|||
Variable_name Value |
|||
Qcache_queries_in_cache 1 |
|||
show status like "Qcache_inserts"; |
|||
Variable_name Value |
|||
Qcache_inserts 1 |
|||
show status like "Qcache_hits"; |
|||
Variable_name Value |
|||
Qcache_hits 9 |
|||
prepare stmt from 'select * from t1 /* with "quote" */'; |
|||
execute stmt; |
|||
a |
|||
1 |
|||
2 |
|||
3 |
|||
show status like "Qcache_queries_in_cache"; |
|||
Variable_name Value |
|||
Qcache_queries_in_cache 1 |
|||
show status like "Qcache_inserts"; |
|||
Variable_name Value |
|||
Qcache_inserts 1 |
|||
show status like "Qcache_hits"; |
|||
Variable_name Value |
|||
Qcache_hits 10 |
|||
prepare stmt from 'select * from t1 /* with \'quote\' */'; |
|||
execute stmt; |
|||
a |
|||
1 |
|||
2 |
|||
3 |
|||
show status like "Qcache_queries_in_cache"; |
|||
Variable_name Value |
|||
Qcache_queries_in_cache 1 |
|||
show status like "Qcache_inserts"; |
|||
Variable_name Value |
|||
Qcache_inserts 1 |
|||
show status like "Qcache_hits"; |
|||
Variable_name Value |
|||
Qcache_hits 11 |
|||
prepare stmt from 'select * from t1 # 123 |
|||
'; |
|||
execute stmt; |
|||
a |
|||
1 |
|||
2 |
|||
3 |
|||
show status like "Qcache_queries_in_cache"; |
|||
Variable_name Value |
|||
Qcache_queries_in_cache 1 |
|||
show status like "Qcache_inserts"; |
|||
Variable_name Value |
|||
Qcache_inserts 1 |
|||
show status like "Qcache_hits"; |
|||
Variable_name Value |
|||
Qcache_hits 12 |
|||
prepare stmt from 'select * from t1 # 123 with "quote" |
|||
'; |
|||
execute stmt; |
|||
a |
|||
1 |
|||
2 |
|||
3 |
|||
show status like "Qcache_queries_in_cache"; |
|||
Variable_name Value |
|||
Qcache_queries_in_cache 1 |
|||
show status like "Qcache_inserts"; |
|||
Variable_name Value |
|||
Qcache_inserts 1 |
|||
show status like "Qcache_hits"; |
|||
Variable_name Value |
|||
Qcache_hits 13 |
|||
prepare stmt from 'select * from t1 # 123 with \'quote\' |
|||
'; |
|||
execute stmt; |
|||
a |
|||
1 |
|||
2 |
|||
3 |
|||
show status like "Qcache_queries_in_cache"; |
|||
Variable_name Value |
|||
Qcache_queries_in_cache 1 |
|||
show status like "Qcache_inserts"; |
|||
Variable_name Value |
|||
Qcache_inserts 1 |
|||
show status like "Qcache_hits"; |
|||
Variable_name Value |
|||
Qcache_hits 14 |
|||
prepare stmt from 'select * from t1 |
|||
# 123 |
|||
'; |
|||
execute stmt; |
|||
a |
|||
1 |
|||
2 |
|||
3 |
|||
show status like "Qcache_queries_in_cache"; |
|||
Variable_name Value |
|||
Qcache_queries_in_cache 1 |
|||
show status like "Qcache_inserts"; |
|||
Variable_name Value |
|||
Qcache_inserts 1 |
|||
show status like "Qcache_hits"; |
|||
Variable_name Value |
|||
Qcache_hits 15 |
|||
prepare stmt from '#456 |
|||
select * from t1 |
|||
# 123 |
|||
'; |
|||
execute stmt; |
|||
a |
|||
1 |
|||
2 |
|||
3 |
|||
show status like "Qcache_queries_in_cache"; |
|||
Variable_name Value |
|||
Qcache_queries_in_cache 1 |
|||
show status like "Qcache_inserts"; |
|||
Variable_name Value |
|||
Qcache_inserts 1 |
|||
show status like "Qcache_hits"; |
|||
Variable_name Value |
|||
Qcache_hits 16 |
|||
prepare stmt from 'select * from t1 -- 123 |
|||
'; |
|||
execute stmt; |
|||
a |
|||
1 |
|||
2 |
|||
3 |
|||
show status like "Qcache_queries_in_cache"; |
|||
Variable_name Value |
|||
Qcache_queries_in_cache 1 |
|||
show status like "Qcache_inserts"; |
|||
Variable_name Value |
|||
Qcache_inserts 1 |
|||
show status like "Qcache_hits"; |
|||
Variable_name Value |
|||
Qcache_hits 17 |
|||
prepare stmt from 'select * from t1 |
|||
-- 123 |
|||
'; |
|||
execute stmt; |
|||
a |
|||
1 |
|||
2 |
|||
3 |
|||
show status like "Qcache_queries_in_cache"; |
|||
Variable_name Value |
|||
Qcache_queries_in_cache 1 |
|||
show status like "Qcache_inserts"; |
|||
Variable_name Value |
|||
Qcache_inserts 1 |
|||
show status like "Qcache_hits"; |
|||
Variable_name Value |
|||
Qcache_hits 18 |
|||
prepare stmt from '-- comment in first |
|||
select * from t1 |
|||
# 123 |
|||
'; |
|||
execute stmt; |
|||
a |
|||
1 |
|||
2 |
|||
3 |
|||
show status like "Qcache_queries_in_cache"; |
|||
Variable_name Value |
|||
Qcache_queries_in_cache 1 |
|||
show status like "Qcache_inserts"; |
|||
Variable_name Value |
|||
Qcache_inserts 1 |
|||
show status like "Qcache_hits"; |
|||
Variable_name Value |
|||
Qcache_hits 19 |
|||
prepare stmt from '(#456( |
|||
select * from t1 |
|||
# 123( |
|||
)'; |
|||
execute stmt; |
|||
a |
|||
1 |
|||
2 |
|||
3 |
|||
show status like "Qcache_queries_in_cache"; |
|||
Variable_name Value |
|||
Qcache_queries_in_cache 2 |
|||
show status like "Qcache_inserts"; |
|||
Variable_name Value |
|||
Qcache_inserts 2 |
|||
show status like "Qcache_hits"; |
|||
Variable_name Value |
|||
Qcache_hits 19 |
|||
prepare stmt from '/*test*/(-- comment in first( |
|||
select * from t1 |
|||
-- 123 asdasd |
|||
/* test */)'; |
|||
execute stmt; |
|||
a |
|||
1 |
|||
2 |
|||
3 |
|||
show status like "Qcache_queries_in_cache"; |
|||
Variable_name Value |
|||
Qcache_queries_in_cache 2 |
|||
show status like "Qcache_inserts"; |
|||
Variable_name Value |
|||
Qcache_inserts 2 |
|||
show status like "Qcache_hits"; |
|||
Variable_name Value |
|||
Qcache_hits 20 |
|||
prepare stmt from 'select "test",a from t1'; |
|||
execute stmt; |
|||
test a |
|||
test 1 |
|||
test 2 |
|||
test 3 |
|||
execute stmt; |
|||
test a |
|||
test 1 |
|||
test 2 |
|||
test 3 |
|||
show status like "Qcache_queries_in_cache"; |
|||
Variable_name Value |
|||
Qcache_queries_in_cache 3 |
|||
show status like "Qcache_inserts"; |
|||
Variable_name Value |
|||
Qcache_inserts 3 |
|||
show status like "Qcache_hits"; |
|||
Variable_name Value |
|||
Qcache_hits 21 |
|||
prepare stmt from 'select "test /* internal \'comment\' */",a from t1'; |
|||
execute stmt; |
|||
test /* internal 'comment' */ a |
|||
test /* internal 'comment' */ 1 |
|||
test /* internal 'comment' */ 2 |
|||
test /* internal 'comment' */ 3 |
|||
show status like "Qcache_queries_in_cache"; |
|||
Variable_name Value |
|||
Qcache_queries_in_cache 4 |
|||
show status like "Qcache_inserts"; |
|||
Variable_name Value |
|||
Qcache_inserts 4 |
|||
show status like "Qcache_hits"; |
|||
Variable_name Value |
|||
Qcache_hits 21 |
|||
prepare stmt from 'select "test #internal comment" ,a from t1'; |
|||
execute stmt; |
|||
test #internal comment a |
|||
test #internal comment 1 |
|||
test #internal comment 2 |
|||
test #internal comment 3 |
|||
show status like "Qcache_queries_in_cache"; |
|||
Variable_name Value |
|||
Qcache_queries_in_cache 5 |
|||
show status like "Qcache_inserts"; |
|||
Variable_name Value |
|||
Qcache_inserts 5 |
|||
show status like "Qcache_hits"; |
|||
Variable_name Value |
|||
Qcache_hits 21 |
|||
prepare stmt from 'select "test #internal comment" #external comment |
|||
,a from t1'; |
|||
execute stmt; |
|||
test #internal comment a |
|||
test #internal comment 1 |
|||
test #internal comment 2 |
|||
test #internal comment 3 |
|||
show status like "Qcache_queries_in_cache"; |
|||
Variable_name Value |
|||
Qcache_queries_in_cache 5 |
|||
show status like "Qcache_inserts"; |
|||
Variable_name Value |
|||
Qcache_inserts 5 |
|||
show status like "Qcache_hits"; |
|||
Variable_name Value |
|||
Qcache_hits 22 |
|||
DROP TABLE t1; |
|||
SET GLOBAL query_cache_size= default; |
|||
set global query_cache_strip_comments=OFF; |
@ -1,208 +0,0 @@ |
|||
-- source include/have_query_cache.inc |
|||
|
|||
set GLOBAL query_cache_size=1355776; |
|||
|
|||
# Reset query cache variables. |
|||
flush query cache; # This crashed in some versions |
|||
flush query cache; # This crashed in some versions |
|||
reset query cache; |
|||
flush status; |
|||
--disable_warnings |
|||
drop table if exists t1; |
|||
--enable_warnings |
|||
|
|||
# |
|||
# First simple test |
|||
# |
|||
|
|||
create table t1 (a int not null); |
|||
insert into t1 values (1),(2),(3); |
|||
|
|||
set global query_cache_strip_comments=ON; |
|||
|
|||
show status like "Qcache_queries_in_cache"; |
|||
show status like "Qcache_inserts"; |
|||
show status like "Qcache_hits"; |
|||
|
|||
prepare stmt from '/* with comment */ select * from t1'; |
|||
execute stmt; |
|||
|
|||
show status like "Qcache_queries_in_cache"; |
|||
show status like "Qcache_inserts"; |
|||
show status like "Qcache_hits"; |
|||
|
|||
execute stmt; |
|||
execute stmt; |
|||
execute stmt; |
|||
execute stmt; |
|||
execute stmt; |
|||
|
|||
show status like "Qcache_queries_in_cache"; |
|||
show status like "Qcache_inserts"; |
|||
show status like "Qcache_hits"; |
|||
|
|||
prepare stmt from 'select * from t1'; |
|||
execute stmt; |
|||
|
|||
show status like "Qcache_queries_in_cache"; |
|||
show status like "Qcache_inserts"; |
|||
show status like "Qcache_hits"; |
|||
|
|||
prepare stmt from 'select * /*internal comment*/from t1'; |
|||
execute stmt; |
|||
|
|||
show status like "Qcache_queries_in_cache"; |
|||
show status like "Qcache_inserts"; |
|||
show status like "Qcache_hits"; |
|||
|
|||
prepare stmt from 'select * /*internal comment*/ from t1'; |
|||
execute stmt; |
|||
|
|||
show status like "Qcache_queries_in_cache"; |
|||
show status like "Qcache_inserts"; |
|||
show status like "Qcache_hits"; |
|||
|
|||
prepare stmt from 'select * from t1 /* at the end */'; |
|||
execute stmt; |
|||
|
|||
show status like "Qcache_queries_in_cache"; |
|||
show status like "Qcache_inserts"; |
|||
show status like "Qcache_hits"; |
|||
|
|||
prepare stmt from 'select * from t1 /* with "quote" */'; |
|||
execute stmt; |
|||
|
|||
show status like "Qcache_queries_in_cache"; |
|||
show status like "Qcache_inserts"; |
|||
show status like "Qcache_hits"; |
|||
|
|||
prepare stmt from 'select * from t1 /* with \'quote\' */'; |
|||
execute stmt; |
|||
|
|||
show status like "Qcache_queries_in_cache"; |
|||
show status like "Qcache_inserts"; |
|||
show status like "Qcache_hits"; |
|||
|
|||
prepare stmt from 'select * from t1 # 123 |
|||
'; |
|||
execute stmt; |
|||
|
|||
show status like "Qcache_queries_in_cache"; |
|||
show status like "Qcache_inserts"; |
|||
show status like "Qcache_hits"; |
|||
|
|||
prepare stmt from 'select * from t1 # 123 with "quote" |
|||
'; |
|||
execute stmt; |
|||
|
|||
show status like "Qcache_queries_in_cache"; |
|||
show status like "Qcache_inserts"; |
|||
show status like "Qcache_hits"; |
|||
|
|||
prepare stmt from 'select * from t1 # 123 with \'quote\' |
|||
'; |
|||
execute stmt; |
|||
|
|||
show status like "Qcache_queries_in_cache"; |
|||
show status like "Qcache_inserts"; |
|||
show status like "Qcache_hits"; |
|||
|
|||
prepare stmt from 'select * from t1 |
|||
# 123 |
|||
'; |
|||
execute stmt; |
|||
|
|||
show status like "Qcache_queries_in_cache"; |
|||
show status like "Qcache_inserts"; |
|||
show status like "Qcache_hits"; |
|||
|
|||
prepare stmt from '#456 |
|||
select * from t1 |
|||
# 123 |
|||
'; |
|||
execute stmt; |
|||
|
|||
show status like "Qcache_queries_in_cache"; |
|||
show status like "Qcache_inserts"; |
|||
show status like "Qcache_hits"; |
|||
|
|||
prepare stmt from 'select * from t1 -- 123 |
|||
'; |
|||
execute stmt; |
|||
|
|||
show status like "Qcache_queries_in_cache"; |
|||
show status like "Qcache_inserts"; |
|||
show status like "Qcache_hits"; |
|||
|
|||
prepare stmt from 'select * from t1 |
|||
-- 123 |
|||
'; |
|||
execute stmt; |
|||
|
|||
show status like "Qcache_queries_in_cache"; |
|||
show status like "Qcache_inserts"; |
|||
show status like "Qcache_hits"; |
|||
|
|||
prepare stmt from '-- comment in first |
|||
select * from t1 |
|||
# 123 |
|||
'; |
|||
execute stmt; |
|||
|
|||
show status like "Qcache_queries_in_cache"; |
|||
show status like "Qcache_inserts"; |
|||
show status like "Qcache_hits"; |
|||
|
|||
prepare stmt from '(#456( |
|||
select * from t1 |
|||
# 123( |
|||
)'; |
|||
execute stmt; |
|||
|
|||
show status like "Qcache_queries_in_cache"; |
|||
show status like "Qcache_inserts"; |
|||
show status like "Qcache_hits"; |
|||
|
|||
prepare stmt from '/*test*/(-- comment in first( |
|||
select * from t1 |
|||
-- 123 asdasd |
|||
/* test */)'; |
|||
execute stmt; |
|||
|
|||
show status like "Qcache_queries_in_cache"; |
|||
show status like "Qcache_inserts"; |
|||
show status like "Qcache_hits"; |
|||
|
|||
prepare stmt from 'select "test",a from t1'; |
|||
execute stmt; |
|||
execute stmt; |
|||
|
|||
show status like "Qcache_queries_in_cache"; |
|||
show status like "Qcache_inserts"; |
|||
show status like "Qcache_hits"; |
|||
|
|||
prepare stmt from 'select "test /* internal \'comment\' */",a from t1'; |
|||
execute stmt; |
|||
|
|||
show status like "Qcache_queries_in_cache"; |
|||
show status like "Qcache_inserts"; |
|||
show status like "Qcache_hits"; |
|||
|
|||
prepare stmt from 'select "test #internal comment" ,a from t1'; |
|||
execute stmt; |
|||
|
|||
show status like "Qcache_queries_in_cache"; |
|||
show status like "Qcache_inserts"; |
|||
show status like "Qcache_hits"; |
|||
|
|||
prepare stmt from 'select "test #internal comment" #external comment |
|||
,a from t1'; |
|||
execute stmt; |
|||
|
|||
show status like "Qcache_queries_in_cache"; |
|||
show status like "Qcache_inserts"; |
|||
show status like "Qcache_hits"; |
|||
|
|||
DROP TABLE t1; |
|||
SET GLOBAL query_cache_size= default; |
|||
set global query_cache_strip_comments=OFF; |
@ -1,8 +0,0 @@ |
|||
let $show=show status like "Qcache_queries_in_cache"; |
|||
eval $show; |
|||
let $show=show status like "Qcache_inserts"; |
|||
eval $show; |
|||
let $show=show status like "Qcache_hits"; |
|||
eval $show; |
|||
|
|||
|
@ -1,727 +0,0 @@ |
|||
SET GLOBAL query_exec_time=0.1; |
|||
include/master-slave.inc |
|||
[connection master] |
|||
CREATE TABLE t(id INT); |
|||
SET GLOBAL query_exec_time = 0.1; |
|||
include/restart_slave.inc |
|||
SET SESSION query_exec_time=0.1; |
|||
SET GLOBAL QUERY_RESPONSE_TIME_STATS=0; |
|||
SET GLOBAL QUERY_RESPONSE_TIME_RANGE_BASE=1; |
|||
Warnings: |
|||
Warning 1292 Truncated incorrect query_response_time_range_base value: '1' |
|||
FLUSH QUERY_RESPONSE_TIME; |
|||
SET GLOBAL QUERY_RESPONSE_TIME_STATS=1; |
|||
SET SESSION query_exec_time = 0.31; |
|||
INSERT INTO t VALUES(1); |
|||
SET SESSION query_exec_time = 0.32; |
|||
INSERT INTO t VALUES(1); |
|||
SET SESSION query_exec_time = 0.33; |
|||
INSERT INTO t VALUES(1); |
|||
SET SESSION query_exec_time = 0.34; |
|||
INSERT INTO t VALUES(1); |
|||
SET SESSION query_exec_time = 0.35; |
|||
INSERT INTO t VALUES(1); |
|||
SET SESSION query_exec_time = 0.36; |
|||
INSERT INTO t VALUES(1); |
|||
SET SESSION query_exec_time = 0.37; |
|||
INSERT INTO t VALUES(1); |
|||
SET SESSION query_exec_time = 0.38; |
|||
INSERT INTO t VALUES(1); |
|||
SET SESSION query_exec_time = 0.39; |
|||
INSERT INTO t VALUES(1); |
|||
SET SESSION query_exec_time = 0.4; |
|||
INSERT INTO t VALUES(1); |
|||
SET SESSION query_exec_time = 1.1; |
|||
INSERT INTO t VALUES(1); |
|||
SET SESSION query_exec_time = 1.2; |
|||
INSERT INTO t VALUES(1); |
|||
SET SESSION query_exec_time = 1.3; |
|||
INSERT INTO t VALUES(1); |
|||
SET SESSION query_exec_time = 1.5; |
|||
INSERT INTO t VALUES(1); |
|||
SET SESSION query_exec_time = 1.4; |
|||
INSERT INTO t VALUES(1); |
|||
SET SESSION query_exec_time = 0.5; |
|||
INSERT INTO t VALUES(1); |
|||
SET SESSION query_exec_time = 2.1; |
|||
INSERT INTO t VALUES(1); |
|||
SET SESSION query_exec_time = 2.3; |
|||
INSERT INTO t VALUES(1); |
|||
SET SESSION query_exec_time = 2.5; |
|||
INSERT INTO t VALUES(1); |
|||
SET SESSION query_exec_time = 3.1; |
|||
INSERT INTO t VALUES(1); |
|||
SET SESSION query_exec_time = 4.1; |
|||
INSERT INTO t VALUES(1); |
|||
SET SESSION query_exec_time = 5.1; |
|||
INSERT INTO t VALUES(1); |
|||
SET GLOBAL QUERY_RESPONSE_TIME_STATS=0; |
|||
SHOW GLOBAL VARIABLES where Variable_name like 'QUERY_RESPONSE_TIME_RANGE_BASE'; |
|||
Variable_name Value |
|||
query_response_time_range_base 2 |
|||
SHOW QUERY_RESPONSE_TIME; |
|||
|
|||
0.000001 1 0.000000 |
|||
0.000003 0 0.000000 |
|||
0.000007 0 0.000000 |
|||
0.000015 0 0.000000 |
|||
0.000030 0 0.000000 |
|||
0.000061 0 0.000000 |
|||
0.000122 0 0.000000 |
|||
0.000244 0 0.000000 |
|||
0.000488 0 0.000000 |
|||
0.000976 0 0.000000 |
|||
0.001953 0 0.000000 |
|||
0.003906 0 0.000000 |
|||
0.007812 0 0.000000 |
|||
0.015625 0 0.000000 |
|||
0.031250 0 0.000000 |
|||
0.062500 0 0.000000 |
|||
0.125000 1 0.100000 |
|||
0.250000 0 0.000000 |
|||
0.500000 30 10.650000 |
|||
1.000000 3 1.500000 |
|||
2.000000 15 19.500000 |
|||
4.000000 12 30.000000 |
|||
8.000000 6 27.599997 |
|||
16.000000 0 0.000000 |
|||
32.000000 0 0.000000 |
|||
64.000000 0 0.000000 |
|||
128.000000 0 0.000000 |
|||
256.000000 0 0.000000 |
|||
512.000000 0 0.000000 |
|||
1024.000000 0 0.000000 |
|||
2048.000000 0 0.000000 |
|||
4096.000000 0 0.000000 |
|||
8192.000000 0 0.000000 |
|||
16384.000000 0 0.000000 |
|||
32768.000000 0 0.000000 |
|||
65536.000000 0 0.000000 |
|||
131072.000000 0 0.000000 |
|||
262144.000000 0 0.000000 |
|||
524288.000000 0 0.000000 |
|||
1048576.000000 0 0.000000 |
|||
2097152.000000 0 0.000000 |
|||
4194304.000000 0 0.000000 |
|||
8388608.000000 0 0.000000 |
|||
TOO LONG 0 TOO LONG |
|||
SELECT * FROM INFORMATION_SCHEMA.QUERY_RESPONSE_TIME; |
|||
time count total |
|||
0.000001 1 0.000000 |
|||
0.000003 0 0.000000 |
|||
0.000007 0 0.000000 |
|||
0.000015 0 0.000000 |
|||
0.000030 0 0.000000 |
|||
0.000061 0 0.000000 |
|||
0.000122 0 0.000000 |
|||
0.000244 0 0.000000 |
|||
0.000488 0 0.000000 |
|||
0.000976 0 0.000000 |
|||
0.001953 0 0.000000 |
|||
0.003906 0 0.000000 |
|||
0.007812 0 0.000000 |
|||
0.015625 0 0.000000 |
|||
0.031250 0 0.000000 |
|||
0.062500 0 0.000000 |
|||
0.125000 1 0.100000 |
|||
0.250000 0 0.000000 |
|||
0.500000 30 10.650000 |
|||
1.000000 3 1.500000 |
|||
2.000000 15 19.500000 |
|||
4.000000 12 30.000000 |
|||
8.000000 6 27.599997 |
|||
16.000000 0 0.000000 |
|||
32.000000 0 0.000000 |
|||
64.000000 0 0.000000 |
|||
128.000000 0 0.000000 |
|||
256.000000 0 0.000000 |
|||
512.000000 0 0.000000 |
|||
1024.000000 0 0.000000 |
|||
2048.000000 0 0.000000 |
|||
4096.000000 0 0.000000 |
|||
8192.000000 0 0.000000 |
|||
16384.000000 0 0.000000 |
|||
32768.000000 0 0.000000 |
|||
65536.000000 0 0.000000 |
|||
131072.000000 0 0.000000 |
|||
262144.000000 0 0.000000 |
|||
524288.000000 0 0.000000 |
|||
1048576.000000 0 0.000000 |
|||
2097152.000000 0 0.000000 |
|||
4194304.000000 0 0.000000 |
|||
8388608.000000 0 0.000000 |
|||
TOO LONG 0 TOO LONG |
|||
SET GLOBAL QUERY_RESPONSE_TIME_RANGE_BASE=default; |
|||
SET GLOBAL QUERY_RESPONSE_TIME_STATS=default; |
|||
DROP TABLE t; |
|||
CREATE TABLE t(id INT); |
|||
SET GLOBAL query_exec_time = 0.1; |
|||
include/restart_slave.inc |
|||
SET SESSION query_exec_time=0.1; |
|||
SET GLOBAL QUERY_RESPONSE_TIME_STATS=0; |
|||
SET GLOBAL QUERY_RESPONSE_TIME_RANGE_BASE=2; |
|||
FLUSH QUERY_RESPONSE_TIME; |
|||
SET GLOBAL QUERY_RESPONSE_TIME_STATS=1; |
|||
SET SESSION query_exec_time = 0.31; |
|||
INSERT INTO t VALUES(1); |
|||
SET SESSION query_exec_time = 0.32; |
|||
INSERT INTO t VALUES(1); |
|||
SET SESSION query_exec_time = 0.33; |
|||
INSERT INTO t VALUES(1); |
|||
SET SESSION query_exec_time = 0.34; |
|||
INSERT INTO t VALUES(1); |
|||
SET SESSION query_exec_time = 0.35; |
|||
INSERT INTO t VALUES(1); |
|||
SET SESSION query_exec_time = 0.36; |
|||
INSERT INTO t VALUES(1); |
|||
SET SESSION query_exec_time = 0.37; |
|||
INSERT INTO t VALUES(1); |
|||
SET SESSION query_exec_time = 0.38; |
|||
INSERT INTO t VALUES(1); |
|||
SET SESSION query_exec_time = 0.39; |
|||
INSERT INTO t VALUES(1); |
|||
SET SESSION query_exec_time = 0.4; |
|||
INSERT INTO t VALUES(1); |
|||
SET SESSION query_exec_time = 1.1; |
|||
INSERT INTO t VALUES(1); |
|||
SET SESSION query_exec_time = 1.2; |
|||
INSERT INTO t VALUES(1); |
|||
SET SESSION query_exec_time = 1.3; |
|||
INSERT INTO t VALUES(1); |
|||
SET SESSION query_exec_time = 1.5; |
|||
INSERT INTO t VALUES(1); |
|||
SET SESSION query_exec_time = 1.4; |
|||
INSERT INTO t VALUES(1); |
|||
SET SESSION query_exec_time = 0.5; |
|||
INSERT INTO t VALUES(1); |
|||
SET SESSION query_exec_time = 2.1; |
|||
INSERT INTO t VALUES(1); |
|||
SET SESSION query_exec_time = 2.3; |
|||
INSERT INTO t VALUES(1); |
|||
SET SESSION query_exec_time = 2.5; |
|||
INSERT INTO t VALUES(1); |
|||
SET SESSION query_exec_time = 3.1; |
|||
INSERT INTO t VALUES(1); |
|||
SET SESSION query_exec_time = 4.1; |
|||
INSERT INTO t VALUES(1); |
|||
SET SESSION query_exec_time = 5.1; |
|||
INSERT INTO t VALUES(1); |
|||
SET GLOBAL QUERY_RESPONSE_TIME_STATS=0; |
|||
SHOW GLOBAL VARIABLES where Variable_name like 'QUERY_RESPONSE_TIME_RANGE_BASE'; |
|||
Variable_name Value |
|||
query_response_time_range_base 2 |
|||
SHOW QUERY_RESPONSE_TIME; |
|||
|
|||
0.000001 1 0.000000 |
|||
0.000003 0 0.000000 |
|||
0.000007 0 0.000000 |
|||
0.000015 0 0.000000 |
|||
0.000030 0 0.000000 |
|||
0.000061 0 0.000000 |
|||
0.000122 0 0.000000 |
|||
0.000244 0 0.000000 |
|||
0.000488 0 0.000000 |
|||
0.000976 0 0.000000 |
|||
0.001953 0 0.000000 |
|||
0.003906 0 0.000000 |
|||
0.007812 0 0.000000 |
|||
0.015625 0 0.000000 |
|||
0.031250 0 0.000000 |
|||
0.062500 0 0.000000 |
|||
0.125000 1 0.100000 |
|||
0.250000 0 0.000000 |
|||
0.500000 30 10.650000 |
|||
1.000000 3 1.500000 |
|||
2.000000 15 19.500000 |
|||
4.000000 12 30.000000 |
|||
8.000000 6 27.599997 |
|||
16.000000 0 0.000000 |
|||
32.000000 0 0.000000 |
|||
64.000000 0 0.000000 |
|||
128.000000 0 0.000000 |
|||
256.000000 0 0.000000 |
|||
512.000000 0 0.000000 |
|||
1024.000000 0 0.000000 |
|||
2048.000000 0 0.000000 |
|||
4096.000000 0 0.000000 |
|||
8192.000000 0 0.000000 |
|||
16384.000000 0 0.000000 |
|||
32768.000000 0 0.000000 |
|||
65536.000000 0 0.000000 |
|||
131072.000000 0 0.000000 |
|||
262144.000000 0 0.000000 |
|||
524288.000000 0 0.000000 |
|||
1048576.000000 0 0.000000 |
|||
2097152.000000 0 0.000000 |
|||
4194304.000000 0 0.000000 |
|||
8388608.000000 0 0.000000 |
|||
TOO LONG 0 TOO LONG |
|||
SELECT * FROM INFORMATION_SCHEMA.QUERY_RESPONSE_TIME; |
|||
time count total |
|||
0.000001 1 0.000000 |
|||
0.000003 0 0.000000 |
|||
0.000007 0 0.000000 |
|||
0.000015 0 0.000000 |
|||
0.000030 0 0.000000 |
|||
0.000061 0 0.000000 |
|||
0.000122 0 0.000000 |
|||
0.000244 0 0.000000 |
|||
0.000488 0 0.000000 |
|||
0.000976 0 0.000000 |
|||
0.001953 0 0.000000 |
|||
0.003906 0 0.000000 |
|||
0.007812 0 0.000000 |
|||
0.015625 0 0.000000 |
|||
0.031250 0 0.000000 |
|||
0.062500 0 0.000000 |
|||
0.125000 1 0.100000 |
|||
0.250000 0 0.000000 |
|||
0.500000 30 10.650000 |
|||
1.000000 3 1.500000 |
|||
2.000000 15 19.500000 |
|||
4.000000 12 30.000000 |
|||
8.000000 6 27.599997 |
|||
16.000000 0 0.000000 |
|||
32.000000 0 0.000000 |
|||
64.000000 0 0.000000 |
|||
128.000000 0 0.000000 |
|||
256.000000 0 0.000000 |
|||
512.000000 0 0.000000 |
|||
1024.000000 0 0.000000 |
|||
2048.000000 0 0.000000 |
|||
4096.000000 0 0.000000 |
|||
8192.000000 0 0.000000 |
|||
16384.000000 0 0.000000 |
|||
32768.000000 0 0.000000 |
|||
65536.000000 0 0.000000 |
|||
131072.000000 0 0.000000 |
|||
262144.000000 0 0.000000 |
|||
524288.000000 0 0.000000 |
|||
1048576.000000 0 0.000000 |
|||
2097152.000000 0 0.000000 |
|||
4194304.000000 0 0.000000 |
|||
8388608.000000 0 0.000000 |
|||
TOO LONG 0 TOO LONG |
|||
SET GLOBAL QUERY_RESPONSE_TIME_RANGE_BASE=default; |
|||
SET GLOBAL QUERY_RESPONSE_TIME_STATS=default; |
|||
DROP TABLE t; |
|||
CREATE TABLE t(id INT); |
|||
SET GLOBAL query_exec_time = 0.1; |
|||
include/restart_slave.inc |
|||
SET SESSION query_exec_time=0.1; |
|||
SET GLOBAL QUERY_RESPONSE_TIME_STATS=0; |
|||
SET GLOBAL QUERY_RESPONSE_TIME_RANGE_BASE=10; |
|||
FLUSH QUERY_RESPONSE_TIME; |
|||
SET GLOBAL QUERY_RESPONSE_TIME_STATS=1; |
|||
SET SESSION query_exec_time = 0.31; |
|||
INSERT INTO t VALUES(1); |
|||
SET SESSION query_exec_time = 0.32; |
|||
INSERT INTO t VALUES(1); |
|||
SET SESSION query_exec_time = 0.33; |
|||
INSERT INTO t VALUES(1); |
|||
SET SESSION query_exec_time = 0.34; |
|||
INSERT INTO t VALUES(1); |
|||
SET SESSION query_exec_time = 0.35; |
|||
INSERT INTO t VALUES(1); |
|||
SET SESSION query_exec_time = 0.36; |
|||
INSERT INTO t VALUES(1); |
|||
SET SESSION query_exec_time = 0.37; |
|||
INSERT INTO t VALUES(1); |
|||
SET SESSION query_exec_time = 0.38; |
|||
INSERT INTO t VALUES(1); |
|||
SET SESSION query_exec_time = 0.39; |
|||
INSERT INTO t VALUES(1); |
|||
SET SESSION query_exec_time = 0.4; |
|||
INSERT INTO t VALUES(1); |
|||
SET SESSION query_exec_time = 1.1; |
|||
INSERT INTO t VALUES(1); |
|||
SET SESSION query_exec_time = 1.2; |
|||
INSERT INTO t VALUES(1); |
|||
SET SESSION query_exec_time = 1.3; |
|||
INSERT INTO t VALUES(1); |
|||
SET SESSION query_exec_time = 1.5; |
|||
INSERT INTO t VALUES(1); |
|||
SET SESSION query_exec_time = 1.4; |
|||
INSERT INTO t VALUES(1); |
|||
SET SESSION query_exec_time = 0.5; |
|||
INSERT INTO t VALUES(1); |
|||
SET SESSION query_exec_time = 2.1; |
|||
INSERT INTO t VALUES(1); |
|||
SET SESSION query_exec_time = 2.3; |
|||
INSERT INTO t VALUES(1); |
|||
SET SESSION query_exec_time = 2.5; |
|||
INSERT INTO t VALUES(1); |
|||
SET SESSION query_exec_time = 3.1; |
|||
INSERT INTO t VALUES(1); |
|||
SET SESSION query_exec_time = 4.1; |
|||
INSERT INTO t VALUES(1); |
|||
SET SESSION query_exec_time = 5.1; |
|||
INSERT INTO t VALUES(1); |
|||
SET GLOBAL QUERY_RESPONSE_TIME_STATS=0; |
|||
SHOW GLOBAL VARIABLES where Variable_name like 'QUERY_RESPONSE_TIME_RANGE_BASE'; |
|||
Variable_name Value |
|||
query_response_time_range_base 10 |
|||
SHOW QUERY_RESPONSE_TIME; |
|||
|
|||
0.000001 1 0.000000 |
|||
0.000010 0 0.000000 |
|||
0.000100 0 0.000000 |
|||
0.001000 0 0.000000 |
|||
0.010000 0 0.000000 |
|||
0.100000 0 0.000000 |
|||
1.000000 34 12.250000 |
|||
10.000000 33 77.099997 |
|||
100.000000 0 0.000000 |
|||
1000.000000 0 0.000000 |
|||
10000.000000 0 0.000000 |
|||
100000.000000 0 0.000000 |
|||
1000000.000000 0 0.000000 |
|||
TOO LONG 0 TOO LONG |
|||
SELECT * FROM INFORMATION_SCHEMA.QUERY_RESPONSE_TIME; |
|||
time count total |
|||
0.000001 1 0.000000 |
|||
0.000010 0 0.000000 |
|||
0.000100 0 0.000000 |
|||
0.001000 0 0.000000 |
|||
0.010000 0 0.000000 |
|||
0.100000 0 0.000000 |
|||
1.000000 34 12.250000 |
|||
10.000000 33 77.099997 |
|||
100.000000 0 0.000000 |
|||
1000.000000 0 0.000000 |
|||
10000.000000 0 0.000000 |
|||
100000.000000 0 0.000000 |
|||
1000000.000000 0 0.000000 |
|||
TOO LONG 0 TOO LONG |
|||
SET GLOBAL QUERY_RESPONSE_TIME_RANGE_BASE=default; |
|||
SET GLOBAL QUERY_RESPONSE_TIME_STATS=default; |
|||
DROP TABLE t; |
|||
CREATE TABLE t(id INT); |
|||
SET GLOBAL query_exec_time = 0.1; |
|||
include/restart_slave.inc |
|||
SET SESSION query_exec_time=0.1; |
|||
SET GLOBAL QUERY_RESPONSE_TIME_STATS=0; |
|||
SET GLOBAL QUERY_RESPONSE_TIME_RANGE_BASE=7; |
|||
FLUSH QUERY_RESPONSE_TIME; |
|||
SET GLOBAL QUERY_RESPONSE_TIME_STATS=1; |
|||
SET SESSION query_exec_time = 0.31; |
|||
INSERT INTO t VALUES(1); |
|||
SET SESSION query_exec_time = 0.32; |
|||
INSERT INTO t VALUES(1); |
|||
SET SESSION query_exec_time = 0.33; |
|||
INSERT INTO t VALUES(1); |
|||
SET SESSION query_exec_time = 0.34; |
|||
INSERT INTO t VALUES(1); |
|||
SET SESSION query_exec_time = 0.35; |
|||
INSERT INTO t VALUES(1); |
|||
SET SESSION query_exec_time = 0.36; |
|||
INSERT INTO t VALUES(1); |
|||
SET SESSION query_exec_time = 0.37; |
|||
INSERT INTO t VALUES(1); |
|||
SET SESSION query_exec_time = 0.38; |
|||
INSERT INTO t VALUES(1); |
|||
SET SESSION query_exec_time = 0.39; |
|||
INSERT INTO t VALUES(1); |
|||
SET SESSION query_exec_time = 0.4; |
|||
INSERT INTO t VALUES(1); |
|||
SET SESSION query_exec_time = 1.1; |
|||
INSERT INTO t VALUES(1); |
|||
SET SESSION query_exec_time = 1.2; |
|||
INSERT INTO t VALUES(1); |
|||
SET SESSION query_exec_time = 1.3; |
|||
INSERT INTO t VALUES(1); |
|||
SET SESSION query_exec_time = 1.5; |
|||
INSERT INTO t VALUES(1); |
|||
SET SESSION query_exec_time = 1.4; |
|||
INSERT INTO t VALUES(1); |
|||
SET SESSION query_exec_time = 0.5; |
|||
INSERT INTO t VALUES(1); |
|||
SET SESSION query_exec_time = 2.1; |
|||
INSERT INTO t VALUES(1); |
|||
SET SESSION query_exec_time = 2.3; |
|||
INSERT INTO t VALUES(1); |
|||
SET SESSION query_exec_time = 2.5; |
|||
INSERT INTO t VALUES(1); |
|||
SET SESSION query_exec_time = 3.1; |
|||
INSERT INTO t VALUES(1); |
|||
SET SESSION query_exec_time = 4.1; |
|||
INSERT INTO t VALUES(1); |
|||
SET SESSION query_exec_time = 5.1; |
|||
INSERT INTO t VALUES(1); |
|||
SET GLOBAL QUERY_RESPONSE_TIME_STATS=0; |
|||
SHOW GLOBAL VARIABLES where Variable_name like 'QUERY_RESPONSE_TIME_RANGE_BASE'; |
|||
Variable_name Value |
|||
query_response_time_range_base 7 |
|||
SHOW QUERY_RESPONSE_TIME; |
|||
|
|||
0.000001 1 0.000000 |
|||
0.000008 0 0.000000 |
|||
0.000059 0 0.000000 |
|||
0.000416 0 0.000000 |
|||
0.002915 0 0.000000 |
|||
0.020408 0 0.000000 |
|||
0.142857 1 0.100000 |
|||
1.000000 33 12.150000 |
|||
7.000000 33 77.099997 |
|||
49.000000 0 0.000000 |
|||
343.000000 0 0.000000 |
|||
2401.000000 0 0.000000 |
|||
16807.000000 0 0.000000 |
|||
117649.000000 0 0.000000 |
|||
823543.000000 0 0.000000 |
|||
5764801.000000 0 0.000000 |
|||
TOO LONG 0 TOO LONG |
|||
SELECT * FROM INFORMATION_SCHEMA.QUERY_RESPONSE_TIME; |
|||
time count total |
|||
0.000001 1 0.000000 |
|||
0.000008 0 0.000000 |
|||
0.000059 0 0.000000 |
|||
0.000416 0 0.000000 |
|||
0.002915 0 0.000000 |
|||
0.020408 0 0.000000 |
|||
0.142857 1 0.100000 |
|||
1.000000 33 12.150000 |
|||
7.000000 33 77.099997 |
|||
49.000000 0 0.000000 |
|||
343.000000 0 0.000000 |
|||
2401.000000 0 0.000000 |
|||
16807.000000 0 0.000000 |
|||
117649.000000 0 0.000000 |
|||
823543.000000 0 0.000000 |
|||
5764801.000000 0 0.000000 |
|||
TOO LONG 0 TOO LONG |
|||
SET GLOBAL QUERY_RESPONSE_TIME_RANGE_BASE=default; |
|||
SET GLOBAL QUERY_RESPONSE_TIME_STATS=default; |
|||
DROP TABLE t; |
|||
CREATE TABLE t(id INT); |
|||
SET GLOBAL query_exec_time = 0.1; |
|||
include/restart_slave.inc |
|||
SET SESSION query_exec_time=0.1; |
|||
SET GLOBAL QUERY_RESPONSE_TIME_STATS=0; |
|||
SET GLOBAL QUERY_RESPONSE_TIME_RANGE_BASE=156; |
|||
FLUSH QUERY_RESPONSE_TIME; |
|||
SET GLOBAL QUERY_RESPONSE_TIME_STATS=1; |
|||
SET SESSION query_exec_time = 0.31; |
|||
INSERT INTO t VALUES(1); |
|||
SET SESSION query_exec_time = 0.32; |
|||
INSERT INTO t VALUES(1); |
|||
SET SESSION query_exec_time = 0.33; |
|||
INSERT INTO t VALUES(1); |
|||
SET SESSION query_exec_time = 0.34; |
|||
INSERT INTO t VALUES(1); |
|||
SET SESSION query_exec_time = 0.35; |
|||
INSERT INTO t VALUES(1); |
|||
SET SESSION query_exec_time = 0.36; |
|||
INSERT INTO t VALUES(1); |
|||
SET SESSION query_exec_time = 0.37; |
|||
INSERT INTO t VALUES(1); |
|||
SET SESSION query_exec_time = 0.38; |
|||
INSERT INTO t VALUES(1); |
|||
SET SESSION query_exec_time = 0.39; |
|||
INSERT INTO t VALUES(1); |
|||
SET SESSION query_exec_time = 0.4; |
|||
INSERT INTO t VALUES(1); |
|||
SET SESSION query_exec_time = 1.1; |
|||
INSERT INTO t VALUES(1); |
|||
SET SESSION query_exec_time = 1.2; |
|||
INSERT INTO t VALUES(1); |
|||
SET SESSION query_exec_time = 1.3; |
|||
INSERT INTO t VALUES(1); |
|||
SET SESSION query_exec_time = 1.5; |
|||
INSERT INTO t VALUES(1); |
|||
SET SESSION query_exec_time = 1.4; |
|||
INSERT INTO t VALUES(1); |
|||
SET SESSION query_exec_time = 0.5; |
|||
INSERT INTO t VALUES(1); |
|||
SET SESSION query_exec_time = 2.1; |
|||
INSERT INTO t VALUES(1); |
|||
SET SESSION query_exec_time = 2.3; |
|||
INSERT INTO t VALUES(1); |
|||
SET SESSION query_exec_time = 2.5; |
|||
INSERT INTO t VALUES(1); |
|||
SET SESSION query_exec_time = 3.1; |
|||
INSERT INTO t VALUES(1); |
|||
SET SESSION query_exec_time = 4.1; |
|||
INSERT INTO t VALUES(1); |
|||
SET SESSION query_exec_time = 5.1; |
|||
INSERT INTO t VALUES(1); |
|||
SET GLOBAL QUERY_RESPONSE_TIME_STATS=0; |
|||
SHOW GLOBAL VARIABLES where Variable_name like 'QUERY_RESPONSE_TIME_RANGE_BASE'; |
|||
Variable_name Value |
|||
query_response_time_range_base 156 |
|||
SHOW QUERY_RESPONSE_TIME; |
|||
|
|||
0.000041 1 0.000000 |
|||
0.006410 0 0.000000 |
|||
1.000000 34 12.250000 |
|||
156.000000 33 77.099997 |
|||
24336.000000 0 0.000000 |
|||
3796416.000000 0 0.000000 |
|||
TOO LONG 0 TOO LONG |
|||
SELECT * FROM INFORMATION_SCHEMA.QUERY_RESPONSE_TIME; |
|||
time count total |
|||
0.000041 1 0.000000 |
|||
0.006410 0 0.000000 |
|||
1.000000 34 12.250000 |
|||
156.000000 33 77.099997 |
|||
24336.000000 0 0.000000 |
|||
3796416.000000 0 0.000000 |
|||
TOO LONG 0 TOO LONG |
|||
SET GLOBAL QUERY_RESPONSE_TIME_RANGE_BASE=default; |
|||
SET GLOBAL QUERY_RESPONSE_TIME_STATS=default; |
|||
DROP TABLE t; |
|||
CREATE TABLE t(id INT); |
|||
SET GLOBAL query_exec_time = 0.1; |
|||
include/restart_slave.inc |
|||
SET SESSION query_exec_time=0.1; |
|||
SET GLOBAL QUERY_RESPONSE_TIME_STATS=0; |
|||
SET GLOBAL QUERY_RESPONSE_TIME_RANGE_BASE=1000; |
|||
FLUSH QUERY_RESPONSE_TIME; |
|||
SET GLOBAL QUERY_RESPONSE_TIME_STATS=1; |
|||
SET SESSION query_exec_time = 0.31; |
|||
INSERT INTO t VALUES(1); |
|||
SET SESSION query_exec_time = 0.32; |
|||
INSERT INTO t VALUES(1); |
|||
SET SESSION query_exec_time = 0.33; |
|||
INSERT INTO t VALUES(1); |
|||
SET SESSION query_exec_time = 0.34; |
|||
INSERT INTO t VALUES(1); |
|||
SET SESSION query_exec_time = 0.35; |
|||
INSERT INTO t VALUES(1); |
|||
SET SESSION query_exec_time = 0.36; |
|||
INSERT INTO t VALUES(1); |
|||
SET SESSION query_exec_time = 0.37; |
|||
INSERT INTO t VALUES(1); |
|||
SET SESSION query_exec_time = 0.38; |
|||
INSERT INTO t VALUES(1); |
|||
SET SESSION query_exec_time = 0.39; |
|||
INSERT INTO t VALUES(1); |
|||
SET SESSION query_exec_time = 0.4; |
|||
INSERT INTO t VALUES(1); |
|||
SET SESSION query_exec_time = 1.1; |
|||
INSERT INTO t VALUES(1); |
|||
SET SESSION query_exec_time = 1.2; |
|||
INSERT INTO t VALUES(1); |
|||
SET SESSION query_exec_time = 1.3; |
|||
INSERT INTO t VALUES(1); |
|||
SET SESSION query_exec_time = 1.5; |
|||
INSERT INTO t VALUES(1); |
|||
SET SESSION query_exec_time = 1.4; |
|||
INSERT INTO t VALUES(1); |
|||
SET SESSION query_exec_time = 0.5; |
|||
INSERT INTO t VALUES(1); |
|||
SET SESSION query_exec_time = 2.1; |
|||
INSERT INTO t VALUES(1); |
|||
SET SESSION query_exec_time = 2.3; |
|||
INSERT INTO t VALUES(1); |
|||
SET SESSION query_exec_time = 2.5; |
|||
INSERT INTO t VALUES(1); |
|||
SET SESSION query_exec_time = 3.1; |
|||
INSERT INTO t VALUES(1); |
|||
SET SESSION query_exec_time = 4.1; |
|||
INSERT INTO t VALUES(1); |
|||
SET SESSION query_exec_time = 5.1; |
|||
INSERT INTO t VALUES(1); |
|||
SET GLOBAL QUERY_RESPONSE_TIME_STATS=0; |
|||
SHOW GLOBAL VARIABLES where Variable_name like 'QUERY_RESPONSE_TIME_RANGE_BASE'; |
|||
Variable_name Value |
|||
query_response_time_range_base 1000 |
|||
SHOW QUERY_RESPONSE_TIME; |
|||
|
|||
0.000001 1 0.000000 |
|||
0.001000 0 0.000000 |
|||
1.000000 34 12.250000 |
|||
1000.000000 33 77.099997 |
|||
1000000.000000 0 0.000000 |
|||
TOO LONG 0 TOO LONG |
|||
SELECT * FROM INFORMATION_SCHEMA.QUERY_RESPONSE_TIME; |
|||
time count total |
|||
0.000001 1 0.000000 |
|||
0.001000 0 0.000000 |
|||
1.000000 34 12.250000 |
|||
1000.000000 33 77.099997 |
|||
1000000.000000 0 0.000000 |
|||
TOO LONG 0 TOO LONG |
|||
SET GLOBAL QUERY_RESPONSE_TIME_RANGE_BASE=default; |
|||
SET GLOBAL QUERY_RESPONSE_TIME_STATS=default; |
|||
DROP TABLE t; |
|||
CREATE TABLE t(id INT); |
|||
SET GLOBAL query_exec_time = 0.1; |
|||
include/restart_slave.inc |
|||
SET SESSION query_exec_time=0.1; |
|||
SET GLOBAL QUERY_RESPONSE_TIME_STATS=0; |
|||
SET GLOBAL QUERY_RESPONSE_TIME_RANGE_BASE=1001; |
|||
Warnings: |
|||
Warning 1292 Truncated incorrect query_response_time_range_base value: '1001' |
|||
FLUSH QUERY_RESPONSE_TIME; |
|||
SET GLOBAL QUERY_RESPONSE_TIME_STATS=1; |
|||
SET SESSION query_exec_time = 0.31; |
|||
INSERT INTO t VALUES(1); |
|||
SET SESSION query_exec_time = 0.32; |
|||
INSERT INTO t VALUES(1); |
|||
SET SESSION query_exec_time = 0.33; |
|||
INSERT INTO t VALUES(1); |
|||
SET SESSION query_exec_time = 0.34; |
|||
INSERT INTO t VALUES(1); |
|||
SET SESSION query_exec_time = 0.35; |
|||
INSERT INTO t VALUES(1); |
|||
SET SESSION query_exec_time = 0.36; |
|||
INSERT INTO t VALUES(1); |
|||
SET SESSION query_exec_time = 0.37; |
|||
INSERT INTO t VALUES(1); |
|||
SET SESSION query_exec_time = 0.38; |
|||
INSERT INTO t VALUES(1); |
|||
SET SESSION query_exec_time = 0.39; |
|||
INSERT INTO t VALUES(1); |
|||
SET SESSION query_exec_time = 0.4; |
|||
INSERT INTO t VALUES(1); |
|||
SET SESSION query_exec_time = 1.1; |
|||
INSERT INTO t VALUES(1); |
|||
SET SESSION query_exec_time = 1.2; |
|||
INSERT INTO t VALUES(1); |
|||
SET SESSION query_exec_time = 1.3; |
|||
INSERT INTO t VALUES(1); |
|||
SET SESSION query_exec_time = 1.5; |
|||
INSERT INTO t VALUES(1); |
|||
SET SESSION query_exec_time = 1.4; |
|||
INSERT INTO t VALUES(1); |
|||
SET SESSION query_exec_time = 0.5; |
|||
INSERT INTO t VALUES(1); |
|||
SET SESSION query_exec_time = 2.1; |
|||
INSERT INTO t VALUES(1); |
|||
SET SESSION query_exec_time = 2.3; |
|||
INSERT INTO t VALUES(1); |
|||
SET SESSION query_exec_time = 2.5; |
|||
INSERT INTO t VALUES(1); |
|||
SET SESSION query_exec_time = 3.1; |
|||
INSERT INTO t VALUES(1); |
|||
SET SESSION query_exec_time = 4.1; |
|||
INSERT INTO t VALUES(1); |
|||
SET SESSION query_exec_time = 5.1; |
|||
INSERT INTO t VALUES(1); |
|||
SET GLOBAL QUERY_RESPONSE_TIME_STATS=0; |
|||
SHOW GLOBAL VARIABLES where Variable_name like 'QUERY_RESPONSE_TIME_RANGE_BASE'; |
|||
Variable_name Value |
|||
query_response_time_range_base 1000 |
|||
SHOW QUERY_RESPONSE_TIME; |
|||
|
|||
0.000001 1 0.000000 |
|||
0.001000 0 0.000000 |
|||
1.000000 34 12.250000 |
|||
1000.000000 33 77.099997 |
|||
1000000.000000 0 0.000000 |
|||
TOO LONG 0 TOO LONG |
|||
SELECT * FROM INFORMATION_SCHEMA.QUERY_RESPONSE_TIME; |
|||
time count total |
|||
0.000001 1 0.000000 |
|||
0.001000 0 0.000000 |
|||
1.000000 34 12.250000 |
|||
1000.000000 33 77.099997 |
|||
1000000.000000 0 0.000000 |
|||
TOO LONG 0 TOO LONG |
|||
SET GLOBAL QUERY_RESPONSE_TIME_RANGE_BASE=default; |
|||
SET GLOBAL QUERY_RESPONSE_TIME_STATS=default; |
|||
DROP TABLE t; |
|||
include/rpl_end.inc |
|||
SET GLOBAL query_exec_time=default; |
|||
SET GLOBAL query_exec_time=default; |
@ -1,28 +0,0 @@ |
|||
SET GLOBAL query_exec_time=0.1; |
|||
|
|||
--source include/have_response_time_distribution.inc |
|||
--source include/have_debug.inc |
|||
--source include/have_binlog_format_statement.inc |
|||
--source include/master-slave.inc |
|||
|
|||
--let base=1 |
|||
--source include/query_response_time-replication.inc |
|||
--let base=2 |
|||
--source include/query_response_time-replication.inc |
|||
--let base=10 |
|||
--source include/query_response_time-replication.inc |
|||
--let base=7 |
|||
--source include/query_response_time-replication.inc |
|||
--let base=156 |
|||
--source include/query_response_time-replication.inc |
|||
--let base=1000 |
|||
--source include/query_response_time-replication.inc |
|||
--let base=1001 |
|||
--source include/query_response_time-replication.inc |
|||
|
|||
--source include/rpl_end.inc |
|||
|
|||
SET GLOBAL query_exec_time=default; |
|||
|
|||
connection slave; |
|||
SET GLOBAL query_exec_time=default; |
@ -1,544 +0,0 @@ |
|||
CREATE TABLE t(a INT); |
|||
CREATE PROCEDURE test_f(t DECIMAL(3,2)) |
|||
BEGIN |
|||
SET SESSION query_exec_time=t; |
|||
INSERT INTO t VALUES(1); |
|||
SET SESSION query_exec_time=0.1; |
|||
DELETE FROM t; |
|||
END^ |
|||
SET SESSION query_exec_time=0.1; |
|||
SET GLOBAL QUERY_RESPONSE_TIME_STATS=0; |
|||
SET GLOBAL QUERY_RESPONSE_TIME_RANGE_BASE=1; |
|||
Warnings: |
|||
Warning 1292 Truncated incorrect query_response_time_range_base value: '1' |
|||
FLUSH QUERY_RESPONSE_TIME; |
|||
SET GLOBAL QUERY_RESPONSE_TIME_STATS=1; |
|||
CALL test_f(0.31); |
|||
CALL test_f(0.32); |
|||
CALL test_f(0.33); |
|||
CALL test_f(0.34); |
|||
CALL test_f(0.35); |
|||
CALL test_f(0.36); |
|||
CALL test_f(0.37); |
|||
CALL test_f(0.38); |
|||
CALL test_f(0.39); |
|||
CALL test_f(0.4); |
|||
CALL test_f(1.1); |
|||
CALL test_f(1.2); |
|||
CALL test_f(1.3); |
|||
CALL test_f(1.5); |
|||
CALL test_f(1.4); |
|||
CALL test_f(0.5); |
|||
CALL test_f(2.1); |
|||
CALL test_f(2.3); |
|||
CALL test_f(2.5); |
|||
CALL test_f(3.1); |
|||
CALL test_f(4.1); |
|||
CALL test_f(5.1); |
|||
SET GLOBAL QUERY_RESPONSE_TIME_STATS=0; |
|||
SHOW GLOBAL VARIABLES where Variable_name like 'QUERY_RESPONSE_TIME_RANGE_BASE'; |
|||
Variable_name Value |
|||
query_response_time_range_base 2 |
|||
SHOW QUERY_RESPONSE_TIME; |
|||
|
|||
0.000001 45 0.000000 |
|||
0.000003 0 0.000000 |
|||
0.000007 0 0.000000 |
|||
0.000015 0 0.000000 |
|||
0.000030 0 0.000000 |
|||
0.000061 0 0.000000 |
|||
0.000122 0 0.000000 |
|||
0.000244 0 0.000000 |
|||
0.000488 0 0.000000 |
|||
0.000976 0 0.000000 |
|||
0.001953 0 0.000000 |
|||
0.003906 0 0.000000 |
|||
0.007812 0 0.000000 |
|||
0.015625 0 0.000000 |
|||
0.031250 0 0.000000 |
|||
0.062500 0 0.000000 |
|||
0.125000 44 4.400000 |
|||
0.250000 0 0.000000 |
|||
0.500000 10 3.550000 |
|||
1.000000 1 0.500000 |
|||
2.000000 5 6.500000 |
|||
4.000000 4 10.000000 |
|||
8.000000 2 9.199999 |
|||
16.000000 0 0.000000 |
|||
32.000000 0 0.000000 |
|||
64.000000 0 0.000000 |
|||
128.000000 0 0.000000 |
|||
256.000000 0 0.000000 |
|||
512.000000 0 0.000000 |
|||
1024.000000 0 0.000000 |
|||
2048.000000 0 0.000000 |
|||
4096.000000 0 0.000000 |
|||
8192.000000 0 0.000000 |
|||
16384.000000 0 0.000000 |
|||
32768.000000 0 0.000000 |
|||
65536.000000 0 0.000000 |
|||
131072.000000 0 0.000000 |
|||
262144.000000 0 0.000000 |
|||
524288.000000 0 0.000000 |
|||
1048576.000000 0 0.000000 |
|||
2097152.000000 0 0.000000 |
|||
4194304.000000 0 0.000000 |
|||
8388608.000000 0 0.000000 |
|||
TOO LONG 0 TOO LONG |
|||
SELECT * FROM INFORMATION_SCHEMA.QUERY_RESPONSE_TIME; |
|||
time count total |
|||
0.000001 45 0.000000 |
|||
0.000003 0 0.000000 |
|||
0.000007 0 0.000000 |
|||
0.000015 0 0.000000 |
|||
0.000030 0 0.000000 |
|||
0.000061 0 0.000000 |
|||
0.000122 0 0.000000 |
|||
0.000244 0 0.000000 |
|||
0.000488 0 0.000000 |
|||
0.000976 0 0.000000 |
|||
0.001953 0 0.000000 |
|||
0.003906 0 0.000000 |
|||
0.007812 0 0.000000 |
|||
0.015625 0 0.000000 |
|||
0.031250 0 0.000000 |
|||
0.062500 0 0.000000 |
|||
0.125000 44 4.400000 |
|||
0.250000 0 0.000000 |
|||
0.500000 10 3.550000 |
|||
1.000000 1 0.500000 |
|||
2.000000 5 6.500000 |
|||
4.000000 4 10.000000 |
|||
8.000000 2 9.199999 |
|||
16.000000 0 0.000000 |
|||
32.000000 0 0.000000 |
|||
64.000000 0 0.000000 |
|||
128.000000 0 0.000000 |
|||
256.000000 0 0.000000 |
|||
512.000000 0 0.000000 |
|||
1024.000000 0 0.000000 |
|||
2048.000000 0 0.000000 |
|||
4096.000000 0 0.000000 |
|||
8192.000000 0 0.000000 |
|||
16384.000000 0 0.000000 |
|||
32768.000000 0 0.000000 |
|||
65536.000000 0 0.000000 |
|||
131072.000000 0 0.000000 |
|||
262144.000000 0 0.000000 |
|||
524288.000000 0 0.000000 |
|||
1048576.000000 0 0.000000 |
|||
2097152.000000 0 0.000000 |
|||
4194304.000000 0 0.000000 |
|||
8388608.000000 0 0.000000 |
|||
TOO LONG 0 TOO LONG |
|||
SET SESSION query_exec_time=default; |
|||
SET SESSION query_exec_time=0.1; |
|||
SET GLOBAL QUERY_RESPONSE_TIME_STATS=0; |
|||
SET GLOBAL QUERY_RESPONSE_TIME_RANGE_BASE=2; |
|||
FLUSH QUERY_RESPONSE_TIME; |
|||
SET GLOBAL QUERY_RESPONSE_TIME_STATS=1; |
|||
CALL test_f(0.31); |
|||
CALL test_f(0.32); |
|||
CALL test_f(0.33); |
|||
CALL test_f(0.34); |
|||
CALL test_f(0.35); |
|||
CALL test_f(0.36); |
|||
CALL test_f(0.37); |
|||
CALL test_f(0.38); |
|||
CALL test_f(0.39); |
|||
CALL test_f(0.4); |
|||
CALL test_f(1.1); |
|||
CALL test_f(1.2); |
|||
CALL test_f(1.3); |
|||
CALL test_f(1.5); |
|||
CALL test_f(1.4); |
|||
CALL test_f(0.5); |
|||
CALL test_f(2.1); |
|||
CALL test_f(2.3); |
|||
CALL test_f(2.5); |
|||
CALL test_f(3.1); |
|||
CALL test_f(4.1); |
|||
CALL test_f(5.1); |
|||
SET GLOBAL QUERY_RESPONSE_TIME_STATS=0; |
|||
SHOW GLOBAL VARIABLES where Variable_name like 'QUERY_RESPONSE_TIME_RANGE_BASE'; |
|||
Variable_name Value |
|||
query_response_time_range_base 2 |
|||
SHOW QUERY_RESPONSE_TIME; |
|||
|
|||
0.000001 45 0.000000 |
|||
0.000003 0 0.000000 |
|||
0.000007 0 0.000000 |
|||
0.000015 0 0.000000 |
|||
0.000030 0 0.000000 |
|||
0.000061 0 0.000000 |
|||
0.000122 0 0.000000 |
|||
0.000244 0 0.000000 |
|||
0.000488 0 0.000000 |
|||
0.000976 0 0.000000 |
|||
0.001953 0 0.000000 |
|||
0.003906 0 0.000000 |
|||
0.007812 0 0.000000 |
|||
0.015625 0 0.000000 |
|||
0.031250 0 0.000000 |
|||
0.062500 0 0.000000 |
|||
0.125000 44 4.400000 |
|||
0.250000 0 0.000000 |
|||
0.500000 10 3.550000 |
|||
1.000000 1 0.500000 |
|||
2.000000 5 6.500000 |
|||
4.000000 4 10.000000 |
|||
8.000000 2 9.199999 |
|||
16.000000 0 0.000000 |
|||
32.000000 0 0.000000 |
|||
64.000000 0 0.000000 |
|||
128.000000 0 0.000000 |
|||
256.000000 0 0.000000 |
|||
512.000000 0 0.000000 |
|||
1024.000000 0 0.000000 |
|||
2048.000000 0 0.000000 |
|||
4096.000000 0 0.000000 |
|||
8192.000000 0 0.000000 |
|||
16384.000000 0 0.000000 |
|||
32768.000000 0 0.000000 |
|||
65536.000000 0 0.000000 |
|||
131072.000000 0 0.000000 |
|||
262144.000000 0 0.000000 |
|||
524288.000000 0 0.000000 |
|||
1048576.000000 0 0.000000 |
|||
2097152.000000 0 0.000000 |
|||
4194304.000000 0 0.000000 |
|||
8388608.000000 0 0.000000 |
|||
TOO LONG 0 TOO LONG |
|||
SELECT * FROM INFORMATION_SCHEMA.QUERY_RESPONSE_TIME; |
|||
time count total |
|||
0.000001 45 0.000000 |
|||
0.000003 0 0.000000 |
|||
0.000007 0 0.000000 |
|||
0.000015 0 0.000000 |
|||
0.000030 0 0.000000 |
|||
0.000061 0 0.000000 |
|||
0.000122 0 0.000000 |
|||
0.000244 0 0.000000 |
|||
0.000488 0 0.000000 |
|||
0.000976 0 0.000000 |
|||
0.001953 0 0.000000 |
|||
0.003906 0 0.000000 |
|||
0.007812 0 0.000000 |
|||
0.015625 0 0.000000 |
|||
0.031250 0 0.000000 |
|||
0.062500 0 0.000000 |
|||
0.125000 44 4.400000 |
|||
0.250000 0 0.000000 |
|||
0.500000 10 3.550000 |
|||
1.000000 1 0.500000 |
|||
2.000000 5 6.500000 |
|||
4.000000 4 10.000000 |
|||
8.000000 2 9.199999 |
|||
16.000000 0 0.000000 |
|||
32.000000 0 0.000000 |
|||
64.000000 0 0.000000 |
|||
128.000000 0 0.000000 |
|||
256.000000 0 0.000000 |
|||
512.000000 0 0.000000 |
|||
1024.000000 0 0.000000 |
|||
2048.000000 0 0.000000 |
|||
4096.000000 0 0.000000 |
|||
8192.000000 0 0.000000 |
|||
16384.000000 0 0.000000 |
|||
32768.000000 0 0.000000 |
|||
65536.000000 0 0.000000 |
|||
131072.000000 0 0.000000 |
|||
262144.000000 0 0.000000 |
|||
524288.000000 0 0.000000 |
|||
1048576.000000 0 0.000000 |
|||
2097152.000000 0 0.000000 |
|||
4194304.000000 0 0.000000 |
|||
8388608.000000 0 0.000000 |
|||
TOO LONG 0 TOO LONG |
|||
SET SESSION query_exec_time=default; |
|||
SET SESSION query_exec_time=0.1; |
|||
SET GLOBAL QUERY_RESPONSE_TIME_STATS=0; |
|||
SET GLOBAL QUERY_RESPONSE_TIME_RANGE_BASE=10; |
|||
FLUSH QUERY_RESPONSE_TIME; |
|||
SET GLOBAL QUERY_RESPONSE_TIME_STATS=1; |
|||
CALL test_f(0.31); |
|||
CALL test_f(0.32); |
|||
CALL test_f(0.33); |
|||
CALL test_f(0.34); |
|||
CALL test_f(0.35); |
|||
CALL test_f(0.36); |
|||
CALL test_f(0.37); |
|||
CALL test_f(0.38); |
|||
CALL test_f(0.39); |
|||
CALL test_f(0.4); |
|||
CALL test_f(1.1); |
|||
CALL test_f(1.2); |
|||
CALL test_f(1.3); |
|||
CALL test_f(1.5); |
|||
CALL test_f(1.4); |
|||
CALL test_f(0.5); |
|||
CALL test_f(2.1); |
|||
CALL test_f(2.3); |
|||
CALL test_f(2.5); |
|||
CALL test_f(3.1); |
|||
CALL test_f(4.1); |
|||
CALL test_f(5.1); |
|||
SET GLOBAL QUERY_RESPONSE_TIME_STATS=0; |
|||
SHOW GLOBAL VARIABLES where Variable_name like 'QUERY_RESPONSE_TIME_RANGE_BASE'; |
|||
Variable_name Value |
|||
query_response_time_range_base 10 |
|||
SHOW QUERY_RESPONSE_TIME; |
|||
|
|||
0.000001 45 0.000000 |
|||
0.000010 0 0.000000 |
|||
0.000100 0 0.000000 |
|||
0.001000 0 0.000000 |
|||
0.010000 0 0.000000 |
|||
0.100000 0 0.000000 |
|||
1.000000 55 8.450000 |
|||
10.000000 11 25.699999 |
|||
100.000000 0 0.000000 |
|||
1000.000000 0 0.000000 |
|||
10000.000000 0 0.000000 |
|||
100000.000000 0 0.000000 |
|||
1000000.000000 0 0.000000 |
|||
TOO LONG 0 TOO LONG |
|||
SELECT * FROM INFORMATION_SCHEMA.QUERY_RESPONSE_TIME; |
|||
time count total |
|||
0.000001 45 0.000000 |
|||
0.000010 0 0.000000 |
|||
0.000100 0 0.000000 |
|||
0.001000 0 0.000000 |
|||
0.010000 0 0.000000 |
|||
0.100000 0 0.000000 |
|||
1.000000 55 8.450000 |
|||
10.000000 11 25.699999 |
|||
100.000000 0 0.000000 |
|||
1000.000000 0 0.000000 |
|||
10000.000000 0 0.000000 |
|||
100000.000000 0 0.000000 |
|||
1000000.000000 0 0.000000 |
|||
TOO LONG 0 TOO LONG |
|||
SET SESSION query_exec_time=default; |
|||
SET SESSION query_exec_time=0.1; |
|||
SET GLOBAL QUERY_RESPONSE_TIME_STATS=0; |
|||
SET GLOBAL QUERY_RESPONSE_TIME_RANGE_BASE=7; |
|||
FLUSH QUERY_RESPONSE_TIME; |
|||
SET GLOBAL QUERY_RESPONSE_TIME_STATS=1; |
|||
CALL test_f(0.31); |
|||
CALL test_f(0.32); |
|||
CALL test_f(0.33); |
|||
CALL test_f(0.34); |
|||
CALL test_f(0.35); |
|||
CALL test_f(0.36); |
|||
CALL test_f(0.37); |
|||
CALL test_f(0.38); |
|||
CALL test_f(0.39); |
|||
CALL test_f(0.4); |
|||
CALL test_f(1.1); |
|||
CALL test_f(1.2); |
|||
CALL test_f(1.3); |
|||
CALL test_f(1.5); |
|||
CALL test_f(1.4); |
|||
CALL test_f(0.5); |
|||
CALL test_f(2.1); |
|||
CALL test_f(2.3); |
|||
CALL test_f(2.5); |
|||
CALL test_f(3.1); |
|||
CALL test_f(4.1); |
|||
CALL test_f(5.1); |
|||
SET GLOBAL QUERY_RESPONSE_TIME_STATS=0; |
|||
SHOW GLOBAL VARIABLES where Variable_name like 'QUERY_RESPONSE_TIME_RANGE_BASE'; |
|||
Variable_name Value |
|||
query_response_time_range_base 7 |
|||
SHOW QUERY_RESPONSE_TIME; |
|||
|
|||
0.000001 45 0.000000 |
|||
0.000008 0 0.000000 |
|||
0.000059 0 0.000000 |
|||
0.000416 0 0.000000 |
|||
0.002915 0 0.000000 |
|||
0.020408 0 0.000000 |
|||
0.142857 44 4.400000 |
|||
1.000000 11 4.050000 |
|||
7.000000 11 25.699999 |
|||
49.000000 0 0.000000 |
|||
343.000000 0 0.000000 |
|||
2401.000000 0 0.000000 |
|||
16807.000000 0 0.000000 |
|||
117649.000000 0 0.000000 |
|||
823543.000000 0 0.000000 |
|||
5764801.000000 0 0.000000 |
|||
TOO LONG 0 TOO LONG |
|||
SELECT * FROM INFORMATION_SCHEMA.QUERY_RESPONSE_TIME; |
|||
time count total |
|||
0.000001 45 0.000000 |
|||
0.000008 0 0.000000 |
|||
0.000059 0 0.000000 |
|||
0.000416 0 0.000000 |
|||
0.002915 0 0.000000 |
|||
0.020408 0 0.000000 |
|||
0.142857 44 4.400000 |
|||
1.000000 11 4.050000 |
|||
7.000000 11 25.699999 |
|||
49.000000 0 0.000000 |
|||
343.000000 0 0.000000 |
|||
2401.000000 0 0.000000 |
|||
16807.000000 0 0.000000 |
|||
117649.000000 0 0.000000 |
|||
823543.000000 0 0.000000 |
|||
5764801.000000 0 0.000000 |
|||
TOO LONG 0 TOO LONG |
|||
SET SESSION query_exec_time=default; |
|||
SET SESSION query_exec_time=0.1; |
|||
SET GLOBAL QUERY_RESPONSE_TIME_STATS=0; |
|||
SET GLOBAL QUERY_RESPONSE_TIME_RANGE_BASE=156; |
|||
FLUSH QUERY_RESPONSE_TIME; |
|||
SET GLOBAL QUERY_RESPONSE_TIME_STATS=1; |
|||
CALL test_f(0.31); |
|||
CALL test_f(0.32); |
|||
CALL test_f(0.33); |
|||
CALL test_f(0.34); |
|||
CALL test_f(0.35); |
|||
CALL test_f(0.36); |
|||
CALL test_f(0.37); |
|||
CALL test_f(0.38); |
|||
CALL test_f(0.39); |
|||
CALL test_f(0.4); |
|||
CALL test_f(1.1); |
|||
CALL test_f(1.2); |
|||
CALL test_f(1.3); |
|||
CALL test_f(1.5); |
|||
CALL test_f(1.4); |
|||
CALL test_f(0.5); |
|||
CALL test_f(2.1); |
|||
CALL test_f(2.3); |
|||
CALL test_f(2.5); |
|||
CALL test_f(3.1); |
|||
CALL test_f(4.1); |
|||
CALL test_f(5.1); |
|||
SET GLOBAL QUERY_RESPONSE_TIME_STATS=0; |
|||
SHOW GLOBAL VARIABLES where Variable_name like 'QUERY_RESPONSE_TIME_RANGE_BASE'; |
|||
Variable_name Value |
|||
query_response_time_range_base 156 |
|||
SHOW QUERY_RESPONSE_TIME; |
|||
|
|||
0.000041 45 0.000000 |
|||
0.006410 0 0.000000 |
|||
1.000000 55 8.450000 |
|||
156.000000 11 25.699999 |
|||
24336.000000 0 0.000000 |
|||
3796416.000000 0 0.000000 |
|||
TOO LONG 0 TOO LONG |
|||
SELECT * FROM INFORMATION_SCHEMA.QUERY_RESPONSE_TIME; |
|||
time count total |
|||
0.000041 45 0.000000 |
|||
0.006410 0 0.000000 |
|||
1.000000 55 8.450000 |
|||
156.000000 11 25.699999 |
|||
24336.000000 0 0.000000 |
|||
3796416.000000 0 0.000000 |
|||
TOO LONG 0 TOO LONG |
|||
SET SESSION query_exec_time=default; |
|||
SET SESSION query_exec_time=0.1; |
|||
SET GLOBAL QUERY_RESPONSE_TIME_STATS=0; |
|||
SET GLOBAL QUERY_RESPONSE_TIME_RANGE_BASE=1000; |
|||
FLUSH QUERY_RESPONSE_TIME; |
|||
SET GLOBAL QUERY_RESPONSE_TIME_STATS=1; |
|||
CALL test_f(0.31); |
|||
CALL test_f(0.32); |
|||
CALL test_f(0.33); |
|||
CALL test_f(0.34); |
|||
CALL test_f(0.35); |
|||
CALL test_f(0.36); |
|||
CALL test_f(0.37); |
|||
CALL test_f(0.38); |
|||
CALL test_f(0.39); |
|||
CALL test_f(0.4); |
|||
CALL test_f(1.1); |
|||
CALL test_f(1.2); |
|||
CALL test_f(1.3); |
|||
CALL test_f(1.5); |
|||
CALL test_f(1.4); |
|||
CALL test_f(0.5); |
|||
CALL test_f(2.1); |
|||
CALL test_f(2.3); |
|||
CALL test_f(2.5); |
|||
CALL test_f(3.1); |
|||
CALL test_f(4.1); |
|||
CALL test_f(5.1); |
|||
SET GLOBAL QUERY_RESPONSE_TIME_STATS=0; |
|||
SHOW GLOBAL VARIABLES where Variable_name like 'QUERY_RESPONSE_TIME_RANGE_BASE'; |
|||
Variable_name Value |
|||
query_response_time_range_base 1000 |
|||
SHOW QUERY_RESPONSE_TIME; |
|||
|
|||
0.000001 45 0.000000 |
|||
0.001000 0 0.000000 |
|||
1.000000 55 8.450000 |
|||
1000.000000 11 25.699999 |
|||
1000000.000000 0 0.000000 |
|||
TOO LONG 0 TOO LONG |
|||
SELECT * FROM INFORMATION_SCHEMA.QUERY_RESPONSE_TIME; |
|||
time count total |
|||
0.000001 45 0.000000 |
|||
0.001000 0 0.000000 |
|||
1.000000 55 8.450000 |
|||
1000.000000 11 25.699999 |
|||
1000000.000000 0 0.000000 |
|||
TOO LONG 0 TOO LONG |
|||
SET SESSION query_exec_time=default; |
|||
SET SESSION query_exec_time=0.1; |
|||
SET GLOBAL QUERY_RESPONSE_TIME_STATS=0; |
|||
SET GLOBAL QUERY_RESPONSE_TIME_RANGE_BASE=1001; |
|||
Warnings: |
|||
Warning 1292 Truncated incorrect query_response_time_range_base value: '1001' |
|||
FLUSH QUERY_RESPONSE_TIME; |
|||
SET GLOBAL QUERY_RESPONSE_TIME_STATS=1; |
|||
CALL test_f(0.31); |
|||
CALL test_f(0.32); |
|||
CALL test_f(0.33); |
|||
CALL test_f(0.34); |
|||
CALL test_f(0.35); |
|||
CALL test_f(0.36); |
|||
CALL test_f(0.37); |
|||
CALL test_f(0.38); |
|||
CALL test_f(0.39); |
|||
CALL test_f(0.4); |
|||
CALL test_f(1.1); |
|||
CALL test_f(1.2); |
|||
CALL test_f(1.3); |
|||
CALL test_f(1.5); |
|||
CALL test_f(1.4); |
|||
CALL test_f(0.5); |
|||
CALL test_f(2.1); |
|||
CALL test_f(2.3); |
|||
CALL test_f(2.5); |
|||
CALL test_f(3.1); |
|||
CALL test_f(4.1); |
|||
CALL test_f(5.1); |
|||
SET GLOBAL QUERY_RESPONSE_TIME_STATS=0; |
|||
SHOW GLOBAL VARIABLES where Variable_name like 'QUERY_RESPONSE_TIME_RANGE_BASE'; |
|||
Variable_name Value |
|||
query_response_time_range_base 1000 |
|||
SHOW QUERY_RESPONSE_TIME; |
|||
|
|||
0.000001 45 0.000000 |
|||
0.001000 0 0.000000 |
|||
1.000000 55 8.450000 |
|||
1000.000000 11 25.699999 |
|||
1000000.000000 0 0.000000 |
|||
TOO LONG 0 TOO LONG |
|||
SELECT * FROM INFORMATION_SCHEMA.QUERY_RESPONSE_TIME; |
|||
time count total |
|||
0.000001 45 0.000000 |
|||
0.001000 0 0.000000 |
|||
1.000000 55 8.450000 |
|||
1000.000000 11 25.699999 |
|||
1000000.000000 0 0.000000 |
|||
TOO LONG 0 TOO LONG |
|||
SET SESSION query_exec_time=default; |
|||
SET GLOBAL QUERY_RESPONSE_TIME_RANGE_BASE=default; |
|||
SET GLOBAL QUERY_RESPONSE_TIME_STATS=default; |
|||
DROP PROCEDURE test_f; |
|||
DROP TABLE t; |
@ -1,36 +0,0 @@ |
|||
--source include/have_response_time_distribution.inc |
|||
--source include/have_debug.inc |
|||
|
|||
CREATE TABLE t(a INT); |
|||
|
|||
delimiter ^; |
|||
CREATE PROCEDURE test_f(t DECIMAL(3,2)) |
|||
BEGIN |
|||
SET SESSION query_exec_time=t; |
|||
INSERT INTO t VALUES(1); |
|||
SET SESSION query_exec_time=0.1; |
|||
DELETE FROM t; |
|||
END^ |
|||
delimiter ;^ |
|||
|
|||
--let base=1 |
|||
--source include/query_response_time-stored.inc |
|||
--let base=2 |
|||
--source include/query_response_time-stored.inc |
|||
--let base=10 |
|||
--source include/query_response_time-stored.inc |
|||
--let base=7 |
|||
--source include/query_response_time-stored.inc |
|||
--let base=156 |
|||
--source include/query_response_time-stored.inc |
|||
--let base=1000 |
|||
--source include/query_response_time-stored.inc |
|||
--let base=1001 |
|||
--source include/query_response_time-stored.inc |
|||
|
|||
SET GLOBAL QUERY_RESPONSE_TIME_RANGE_BASE=default; |
|||
SET GLOBAL QUERY_RESPONSE_TIME_STATS=default; |
|||
|
|||
DROP PROCEDURE test_f; |
|||
|
|||
DROP TABLE t; |
1307
percona-suite/percona_query_response_time.result
File diff suppressed because it is too large
View File
File diff suppressed because it is too large
View File
@ -1,20 +0,0 @@ |
|||
--source include/have_response_time_distribution.inc |
|||
--source include/have_debug.inc |
|||
|
|||
--let base=1 |
|||
--source include/query_response_time.inc |
|||
--let base=2 |
|||
--source include/query_response_time.inc |
|||
--let base=10 |
|||
--source include/query_response_time.inc |
|||
--let base=7 |
|||
--source include/query_response_time.inc |
|||
--let base=156 |
|||
--source include/query_response_time.inc |
|||
--let base=1000 |
|||
--source include/query_response_time.inc |
|||
--let base=1001 |
|||
--source include/query_response_time.inc |
|||
|
|||
SET GLOBAL QUERY_RESPONSE_TIME_RANGE_BASE=default; |
|||
SET GLOBAL QUERY_RESPONSE_TIME_STATS=default; |
@ -1 +0,0 @@ |
|||
FLUSH QUERY_RESPONSE_TIME; |
@ -1,8 +0,0 @@ |
|||
SELECT d.count, |
|||
(SELECT SUM(a.count) FROM INFORMATION_SCHEMA.QUERY_RESPONSE_TIME as a WHERE a.count != 0) as query_count, |
|||
(SELECT SUM((b.total * 1000000) DIV 1000000) FROM INFORMATION_SCHEMA.QUERY_RESPONSE_TIME as b WHERE b.count != 0) as query_total, |
|||
(SELECT COUNT(*) FROM INFORMATION_SCHEMA.QUERY_RESPONSE_TIME as c WHERE c.count != 0) as not_zero_region_count, |
|||
(SELECT COUNT(*) FROM INFORMATION_SCHEMA.QUERY_RESPONSE_TIME) as region_count |
|||
FROM INFORMATION_SCHEMA.QUERY_RESPONSE_TIME as d WHERE d.count > 0; |
|||
SELECT COUNT(*) as region_count FROM INFORMATION_SCHEMA.QUERY_RESPONSE_TIME; |
|||
SELECT time FROM INFORMATION_SCHEMA.QUERY_RESPONSE_TIME; |
@ -1,19 +0,0 @@ |
|||
SET SESSION debug="+d,query_exec_time_0.31"; |
|||
SET SESSION debug="+d,query_exec_time_0.32"; |
|||
SET SESSION debug="+d,query_exec_time_0.33"; |
|||
SET SESSION debug="+d,query_exec_time_0.34"; |
|||
SET SESSION debug="+d,query_exec_time_0.35"; |
|||
SET SESSION debug="+d,query_exec_time_0.36"; |
|||
SET SESSION debug="+d,query_exec_time_0.37"; |
|||
SET SESSION debug="+d,query_exec_time_0.38"; |
|||
SET SESSION debug="+d,query_exec_time_0.39"; |
|||
SET SESSION debug="+d,query_exec_time_0.4"; |
|||
SET SESSION debug="+d,query_exec_time_1.1"; |
|||
SET SESSION debug="+d,query_exec_time_1.2"; |
|||
SET SESSION debug="+d,query_exec_time_1.3"; |
|||
SET SESSION debug="+d,query_exec_time_1.5"; |
|||
SET SESSION debug="+d,query_exec_time_1.4"; |
|||
SET SESSION debug="+d,query_exec_time_0.5"; |
|||
SET SESSION debug="+d,query_exec_time_2.1"; |
|||
SET SESSION debug="+d,query_exec_time_2.3"; |
|||
SET SESSION debug="+d,query_exec_time_2.5"; |
@ -1,3 +0,0 @@ |
|||
--source include/have_response_time_distribution.inc |
|||
--source include/have_innodb.inc |
|||
SELECT Variable_name FROM INFORMATION_SCHEMA.SESSION_VARIABLES ORDER BY 1; |
@ -1,382 +0,0 @@ |
|||
SELECT Variable_name FROM INFORMATION_SCHEMA.SESSION_VARIABLES ORDER BY 1; |
|||
Variable_name |
|||
AUTOCOMMIT |
|||
AUTOMATIC_SP_PRIVILEGES |
|||
AUTO_INCREMENT_INCREMENT |
|||
AUTO_INCREMENT_OFFSET |
|||
BACK_LOG |
|||
BASEDIR |
|||
BIG_TABLES |
|||
BINLOG_CACHE_SIZE |
|||
BINLOG_DIRECT_NON_TRANSACTIONAL_UPDATES |
|||
BINLOG_FORMAT |
|||
BINLOG_STMT_CACHE_SIZE |
|||
BULK_INSERT_BUFFER_SIZE |
|||
CHARACTER_SETS_DIR |
|||
CHARACTER_SET_CLIENT |
|||
CHARACTER_SET_CONNECTION |
|||
CHARACTER_SET_DATABASE |
|||
CHARACTER_SET_FILESYSTEM |
|||
CHARACTER_SET_RESULTS |
|||
CHARACTER_SET_SERVER |
|||
CHARACTER_SET_SYSTEM |
|||
COLLATION_CONNECTION |
|||
COLLATION_DATABASE |
|||
COLLATION_SERVER |
|||
COMPLETION_TYPE |
|||
CONCURRENT_INSERT |
|||
CONNECT_TIMEOUT |
|||
DATADIR |
|||
DATETIME_FORMAT |
|||
DATE_FORMAT |
|||
DEBUG |
|||
DEBUG_SYNC |
|||
DEFAULT_STORAGE_ENGINE |
|||
DEFAULT_WEEK_FORMAT |
|||
DELAYED_INSERT_LIMIT |
|||
DELAYED_INSERT_TIMEOUT |
|||
DELAYED_QUEUE_SIZE |
|||
DELAY_KEY_WRITE |
|||
DIV_PRECISION_INCREMENT |
|||
ENGINE_CONDITION_PUSHDOWN |
|||
ERROR_COUNT |
|||
EVENT_SCHEDULER |
|||
EXPAND_FAST_INDEX_CREATION |
|||
EXPIRE_LOGS_DAYS |
|||
EXTERNAL_USER |
|||
FAST_INDEX_CREATION |
|||
FLUSH |
|||
FLUSH_TIME |
|||
FOREIGN_KEY_CHECKS |
|||
FT_BOOLEAN_SYNTAX |
|||
FT_MAX_WORD_LEN |
|||
FT_MIN_WORD_LEN |
|||
FT_QUERY_EXPANSION_LIMIT |
|||
FT_STOPWORD_FILE |
|||
GENERAL_LOG |
|||
GENERAL_LOG_FILE |
|||
GROUP_CONCAT_MAX_LEN |
|||
HAVE_COMPRESS |
|||
HAVE_CRYPT |
|||
HAVE_CSV |
|||
HAVE_DYNAMIC_LOADING |
|||
HAVE_GEOMETRY |
|||
HAVE_INNODB |
|||
HAVE_NDBCLUSTER |
|||
HAVE_OPENSSL |
|||
HAVE_PARTITIONING |
|||
HAVE_PROFILING |
|||
HAVE_QUERY_CACHE |
|||
HAVE_RESPONSE_TIME_DISTRIBUTION |
|||
HAVE_RTREE_KEYS |
|||
HAVE_SSL |
|||
HAVE_SYMLINK |
|||
HOSTNAME |
|||
IDENTITY |
|||
IGNORE_BUILTIN_INNODB |
|||
INIT_CONNECT |
|||
INIT_FILE |
|||
INIT_SLAVE |
|||
INNODB_ADAPTIVE_FLUSHING |
|||
INNODB_ADAPTIVE_FLUSHING_METHOD |
|||
INNODB_ADAPTIVE_HASH_INDEX |
|||
INNODB_ADAPTIVE_HASH_INDEX_PARTITIONS |
|||
INNODB_ADDITIONAL_MEM_POOL_SIZE |
|||
INNODB_AUTOEXTEND_INCREMENT |
|||
INNODB_AUTOINC_LOCK_MODE |
|||
INNODB_BLOCKING_BUFFER_POOL_RESTORE |
|||
INNODB_BUFFER_POOL_INSTANCES |
|||
INNODB_BUFFER_POOL_RESTORE_AT_STARTUP |
|||
INNODB_BUFFER_POOL_SHM_CHECKSUM |
|||
INNODB_BUFFER_POOL_SHM_KEY |
|||
INNODB_BUFFER_POOL_SIZE |
|||
INNODB_CHANGE_BUFFERING |
|||
INNODB_CHANGE_BUFFERING_DEBUG |
|||
INNODB_CHECKPOINT_AGE_TARGET |
|||
INNODB_CHECKSUMS |
|||
INNODB_COMMIT_CONCURRENCY |
|||
INNODB_CONCURRENCY_TICKETS |
|||
INNODB_CORRUPT_TABLE_ACTION |
|||
INNODB_DATA_FILE_PATH |
|||
INNODB_DATA_HOME_DIR |
|||
INNODB_DICT_SIZE_LIMIT |
|||
INNODB_DOUBLEWRITE |
|||
INNODB_DOUBLEWRITE_FILE |
|||
INNODB_FAKE_CHANGES |
|||
INNODB_FAST_CHECKSUM |
|||
INNODB_FAST_SHUTDOWN |
|||
INNODB_FILE_FORMAT |
|||
INNODB_FILE_FORMAT_CHECK |
|||
INNODB_FILE_FORMAT_MAX |
|||
INNODB_FILE_PER_TABLE |
|||
INNODB_FLUSH_CHECKPOINT_DEBUG |
|||
INNODB_FLUSH_LOG_AT_TRX_COMMIT |
|||
INNODB_FLUSH_METHOD |
|||
INNODB_FLUSH_NEIGHBOR_PAGES |
|||
INNODB_FORCE_LOAD_CORRUPTED |
|||
INNODB_FORCE_RECOVERY |
|||
INNODB_IBUF_ACCEL_RATE |
|||
INNODB_IBUF_ACTIVE_CONTRACT |
|||
INNODB_IBUF_MAX_SIZE |
|||
INNODB_IMPORT_TABLE_FROM_XTRABACKUP |
|||
INNODB_IO_CAPACITY |
|||
INNODB_KILL_IDLE_TRANSACTION |
|||
INNODB_LARGE_PREFIX |
|||
INNODB_LAZY_DROP_TABLE |
|||
INNODB_LOCKS_UNSAFE_FOR_BINLOG |
|||
INNODB_LOCK_WAIT_TIMEOUT |
|||
INNODB_LOG_BLOCK_SIZE |
|||
INNODB_LOG_BUFFER_SIZE |
|||
INNODB_LOG_FILES_IN_GROUP |
|||
INNODB_LOG_FILE_SIZE |
|||
INNODB_LOG_GROUP_HOME_DIR |
|||
INNODB_MAX_DIRTY_PAGES_PCT |
|||
INNODB_MAX_PURGE_LAG |
|||
INNODB_MIRRORED_LOG_GROUPS |
|||
INNODB_OLD_BLOCKS_PCT |
|||
INNODB_OLD_BLOCKS_TIME |
|||
INNODB_OPEN_FILES |
|||
INNODB_PAGE_SIZE |
|||
INNODB_PURGE_BATCH_SIZE |
|||
INNODB_PURGE_THREADS |
|||
INNODB_RANDOM_READ_AHEAD |
|||
INNODB_READ_AHEAD |
|||
INNODB_READ_AHEAD_THRESHOLD |
|||
INNODB_READ_IO_THREADS |
|||
INNODB_RECOVERY_STATS |
|||
INNODB_RECOVERY_UPDATE_RELAY_LOG |
|||
INNODB_REPLICATION_DELAY |
|||
INNODB_ROLLBACK_ON_TIMEOUT |
|||
INNODB_ROLLBACK_SEGMENTS |
|||
INNODB_SHOW_LOCKS_HELD |
|||
INNODB_SHOW_VERBOSE_LOCKS |
|||
INNODB_SPIN_WAIT_DELAY |
|||
INNODB_STATS_AUTO_UPDATE |
|||
INNODB_STATS_METHOD |
|||
INNODB_STATS_ON_METADATA |
|||
INNODB_STATS_SAMPLE_PAGES |
|||
INNODB_STATS_UPDATE_NEED_LOCK |
|||
INNODB_STRICT_MODE |
|||
INNODB_SUPPORT_XA |
|||
INNODB_SYNC_SPIN_LOOPS |
|||
INNODB_TABLE_LOCKS |
|||
INNODB_THREAD_CONCURRENCY |
|||
INNODB_THREAD_CONCURRENCY_TIMER_BASED |
|||
INNODB_THREAD_SLEEP_DELAY |
|||
INNODB_USE_GLOBAL_FLUSH_LOG_AT_TRX_COMMIT |
|||
INNODB_USE_NATIVE_AIO |
|||
INNODB_USE_SYS_MALLOC |
|||
INNODB_USE_SYS_STATS_TABLE |
|||
INNODB_VERSION |
|||
INNODB_WRITE_IO_THREADS |
|||
INSERT_ID |
|||
INTERACTIVE_TIMEOUT |
|||
JOIN_BUFFER_SIZE |
|||
KEEP_FILES_ON_CREATE |
|||
KEY_BUFFER_SIZE |
|||
KEY_CACHE_AGE_THRESHOLD |
|||
KEY_CACHE_BLOCK_SIZE |
|||
KEY_CACHE_DIVISION_LIMIT |
|||
LARGE_FILES_SUPPORT |
|||
LARGE_PAGES |
|||
LARGE_PAGE_SIZE |
|||
LAST_INSERT_ID |
|||
LC_MESSAGES |
|||
LC_MESSAGES_DIR |
|||
LC_TIME_NAMES |
|||
LICENSE |
|||
LOCAL_INFILE |
|||
LOCKED_IN_MEMORY |
|||
LOCK_WAIT_TIMEOUT |
|||
LOG |
|||
LOG_BIN |
|||
LOG_BIN_TRUST_FUNCTION_CREATORS |
|||
LOG_ERROR |
|||
LOG_OUTPUT |
|||
LOG_QUERIES_NOT_USING_INDEXES |
|||
LOG_SLAVE_UPDATES |
|||
LOG_SLOW_ADMIN_STATEMENTS |
|||
LOG_SLOW_FILTER |
|||
LOG_SLOW_QUERIES |
|||
LOG_SLOW_RATE_LIMIT |
|||
LOG_SLOW_SLAVE_STATEMENTS |
|||
LOG_SLOW_SP_STATEMENTS |
|||
LOG_SLOW_VERBOSITY |
|||
LOG_WARNINGS |
|||
LOG_WARNINGS_SUPPRESS |
|||
LONG_QUERY_TIME |
|||
LOWER_CASE_FILE_SYSTEM |
|||
LOWER_CASE_TABLE_NAMES |
|||
LOW_PRIORITY_UPDATES |
|||
MAX_ALLOWED_PACKET |
|||
MAX_BINLOG_CACHE_SIZE |
|||
MAX_BINLOG_SIZE |
|||
MAX_BINLOG_STMT_CACHE_SIZE |
|||
MAX_CONNECTIONS |
|||
MAX_CONNECT_ERRORS |
|||
MAX_DELAYED_THREADS |
|||
MAX_ERROR_COUNT |
|||
MAX_HEAP_TABLE_SIZE |
|||
MAX_INSERT_DELAYED_THREADS |
|||
MAX_JOIN_SIZE |
|||
MAX_LENGTH_FOR_SORT_DATA |
|||
MAX_LONG_DATA_SIZE |
|||
MAX_PREPARED_STMT_COUNT |
|||
MAX_RELAY_LOG_SIZE |
|||
MAX_SEEKS_FOR_KEY |
|||
MAX_SORT_LENGTH |
|||
MAX_SP_RECURSION_DEPTH |
|||
MAX_TMP_TABLES |
|||
MAX_USER_CONNECTIONS |
|||
MAX_WRITE_LOCK_COUNT |
|||
METADATA_LOCKS_CACHE_SIZE |
|||
MIN_EXAMINED_ROW_LIMIT |
|||
MULTI_RANGE_COUNT |
|||
MYISAM_DATA_POINTER_SIZE |
|||
MYISAM_MAX_SORT_FILE_SIZE |
|||
MYISAM_MMAP_SIZE |
|||
MYISAM_RECOVER_OPTIONS |
|||
MYISAM_REPAIR_THREADS |
|||
MYISAM_SORT_BUFFER_SIZE |
|||
MYISAM_STATS_METHOD |
|||
MYISAM_USE_MMAP |
|||
NET_BUFFER_LENGTH |
|||
NET_READ_TIMEOUT |
|||
NET_RETRY_COUNT |
|||
NET_WRITE_TIMEOUT |
|||
NEW |
|||
OLD |
|||
OLD_ALTER_TABLE |
|||
OLD_PASSWORDS |
|||
OPEN_FILES_LIMIT |
|||
OPTIMIZER_FIX |
|||
OPTIMIZER_PRUNE_LEVEL |
|||
OPTIMIZER_SEARCH_DEPTH |
|||
OPTIMIZER_SWITCH |
|||
PERFORMANCE_SCHEMA |
|||
PERFORMANCE_SCHEMA_EVENTS_WAITS_HISTORY_LONG_SIZE |
|||
PERFORMANCE_SCHEMA_EVENTS_WAITS_HISTORY_SIZE |
|||
PERFORMANCE_SCHEMA_MAX_COND_CLASSES |
|||
PERFORMANCE_SCHEMA_MAX_COND_INSTANCES |
|||
PERFORMANCE_SCHEMA_MAX_FILE_CLASSES |
|||
PERFORMANCE_SCHEMA_MAX_FILE_HANDLES |
|||
PERFORMANCE_SCHEMA_MAX_FILE_INSTANCES |
|||
PERFORMANCE_SCHEMA_MAX_MUTEX_CLASSES |
|||
PERFORMANCE_SCHEMA_MAX_MUTEX_INSTANCES |
|||
PERFORMANCE_SCHEMA_MAX_RWLOCK_CLASSES |
|||
PERFORMANCE_SCHEMA_MAX_RWLOCK_INSTANCES |
|||
PERFORMANCE_SCHEMA_MAX_TABLE_HANDLES |
|||
PERFORMANCE_SCHEMA_MAX_TABLE_INSTANCES |
|||
PERFORMANCE_SCHEMA_MAX_THREAD_CLASSES |
|||
PERFORMANCE_SCHEMA_MAX_THREAD_INSTANCES |
|||
PID_FILE |
|||
PLUGIN_DIR |
|||
PORT |
|||
PRELOAD_BUFFER_SIZE |
|||
PROFILING |
|||
PROFILING_HISTORY_SIZE |
|||
PROTOCOL_VERSION |
|||
PROXY_USER |
|||
PSEUDO_THREAD_ID |
|||
QUERY_ALLOC_BLOCK_SIZE |
|||
QUERY_CACHE_LIMIT |
|||
QUERY_CACHE_MIN_RES_UNIT |
|||
QUERY_CACHE_SIZE |
|||
QUERY_CACHE_STRIP_COMMENTS |
|||
QUERY_CACHE_TYPE |
|||
QUERY_CACHE_WLOCK_INVALIDATE |
|||
QUERY_EXEC_TIME |
|||
QUERY_PREALLOC_SIZE |
|||
QUERY_RESPONSE_TIME_RANGE_BASE |
|||
QUERY_RESPONSE_TIME_STATS |
|||
RAND_SEED1 |
|||
RAND_SEED2 |
|||
RANGE_ALLOC_BLOCK_SIZE |
|||
READ_BUFFER_SIZE |
|||
READ_ONLY |
|||
READ_RND_BUFFER_SIZE |
|||
RELAY_LOG |
|||
RELAY_LOG_INDEX |
|||
RELAY_LOG_INFO_FILE |
|||
RELAY_LOG_PURGE |
|||
RELAY_LOG_RECOVERY |
|||
RELAY_LOG_SPACE_LIMIT |
|||
REPORT_HOST |
|||
REPORT_PASSWORD |
|||
REPORT_PORT |
|||
REPORT_USER |
|||
RPL_RECOVERY_RANK |
|||
SECURE_AUTH |
|||
SECURE_FILE_PRIV |
|||
SERVER_ID |
|||
SKIP_EXTERNAL_LOCKING |
|||
SKIP_NAME_RESOLVE |
|||
SKIP_NETWORKING |
|||
SKIP_SHOW_DATABASE |
|||
SLAVE_COMPRESSED_PROTOCOL |
|||
SLAVE_EXEC_MODE |
|||
SLAVE_LOAD_TMPDIR |
|||
SLAVE_NET_TIMEOUT |
|||
SLAVE_SKIP_ERRORS |
|||
SLAVE_TRANSACTION_RETRIES |
|||
SLAVE_TYPE_CONVERSIONS |
|||
SLOW_LAUNCH_TIME |
|||
SLOW_QUERY_LOG |
|||
SLOW_QUERY_LOG_FILE |
|||
SLOW_QUERY_LOG_TIMESTAMP_ALWAYS |
|||
SLOW_QUERY_LOG_TIMESTAMP_PRECISION |
|||
SLOW_QUERY_LOG_USE_GLOBAL_CONTROL |
|||
SOCKET |
|||
SORT_BUFFER_SIZE |
|||
SQL_AUTO_IS_NULL |
|||
SQL_BIG_SELECTS |
|||
SQL_BIG_TABLES |
|||
SQL_BUFFER_RESULT |
|||
SQL_LOG_BIN |
|||
SQL_LOG_OFF |
|||
SQL_LOW_PRIORITY_UPDATES |
|||
SQL_MAX_JOIN_SIZE |
|||
SQL_MODE |
|||
SQL_NOTES |
|||
SQL_QUOTE_SHOW_CREATE |
|||
SQL_SAFE_UPDATES |
|||
SQL_SELECT_LIMIT |
|||
SQL_SLAVE_SKIP_COUNTER |
|||
SQL_WARNINGS |
|||
SSL_CA |
|||
SSL_CAPATH |
|||
SSL_CERT |
|||
SSL_CIPHER |
|||
SSL_KEY |
|||
STORAGE_ENGINE |
|||
SYNC_BINLOG |
|||
SYNC_FRM |
|||
SYNC_MASTER_INFO |
|||
SYNC_RELAY_LOG |
|||
SYNC_RELAY_LOG_INFO |
|||
SYSTEM_TIME_ZONE |
|||
TABLE_DEFINITION_CACHE |
|||
TABLE_OPEN_CACHE |
|||
THREAD_CACHE_SIZE |
|||
THREAD_CONCURRENCY |
|||
THREAD_HANDLING |
|||
THREAD_STACK |
|||
THREAD_STATISTICS |
|||
TIMED_MUTEXES |
|||
TIMESTAMP |
|||
TIME_FORMAT |
|||
TIME_ZONE |
|||
TMPDIR |
|||
TMP_TABLE_SIZE |
|||
TRANSACTION_ALLOC_BLOCK_SIZE |
|||
TRANSACTION_PREALLOC_SIZE |
|||
TX_ISOLATION |
|||
UNIQUE_CHECKS |
|||
UPDATABLE_VIEWS_WITH_LIMIT |
|||
USERSTAT |
|||
VERSION |
|||
VERSION_COMMENT |
|||
VERSION_COMPILE_MACHINE |
|||
VERSION_COMPILE_OS |
|||
WAIT_TIMEOUT |
|||
WARNING_COUNT |
Some files were not shown because too many files changed in this diff
Write
Preview
Loading…
Cancel
Save
Reference in new issue