mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
MDEV-33145 Add FLUSH GLOBAL STATUS
- FLUSH GLOBAL STATUS now resets most global_status_vars. At this stage, this is mainly to be used for testing. - FLUSH SESSION STATUS added as an alias for FLUSH STATUS. - FLUSH STATUS does not require any privilege (before required RELOAD). - FLUSH GLOBAL STATUS requires RELOAD privilege. - All global status reset moved to FLUSH GLOBAL STATUS. - Replication semisync status variables are now reset by FLUSH GLOBAL STATUS. - In test cases, the only changes are: - Replace FLUSH STATUS with FLUSH GLOBAL STATUS - Replace FLUSH STATUS with FLUSH STATUS; FLUSH GLOBAL STATUS. This was only done in a few tests where the test was using SHOW STATUS for both local and global variables. - Uptime_since_flush_status is now always provided, independent if ENABLED_PROFILING is enabled when compiling MariaDB. - @@global.Uptime_since_flush_status is reset on FLUSH GLOBAL STATUS and @@session.Uptime_since_flush_status is reset on FLUSH SESSION STATUS. - When connected, @@session.Uptime_since_flush_status is set to 0.
This commit is contained in:
@ -5,7 +5,7 @@ update performance_schema.setup_instruments set enabled='NO';
|
||||
update performance_schema.setup_instruments set enabled='YES'
|
||||
where name like "wait/io/table/%";
|
||||
truncate table performance_schema.events_waits_history_long;
|
||||
flush status;
|
||||
flush global status;
|
||||
flush tables;
|
||||
drop table if exists test.no_index_tab;
|
||||
update performance_schema.setup_consumers set enabled='YES';
|
||||
@ -136,10 +136,10 @@ Performance_schema_thread_classes_lost 0
|
||||
Performance_schema_thread_instances_lost 0
|
||||
Performance_schema_users_lost 0
|
||||
truncate performance_schema.events_waits_history_long;
|
||||
flush status;
|
||||
flush global status;
|
||||
update performance_schema.setup_consumers set enabled='NO';
|
||||
truncate performance_schema.events_waits_history_long;
|
||||
drop table test.marker;
|
||||
flush status;
|
||||
flush global status;
|
||||
update performance_schema.setup_instruments set enabled='YES';
|
||||
update performance_schema.setup_consumers set enabled='YES';
|
||||
|
@ -4,7 +4,7 @@ WHERE name LIKE 'wait/io/file/%';
|
||||
update performance_schema.threads SET instrumented = 'YES'
|
||||
WHERE PROCESSLIST_ID=connection_id();
|
||||
truncate table performance_schema.events_statements_summary_by_digest;
|
||||
flush status;
|
||||
flush global status;
|
||||
DROP TABLE IF EXISTS t1;
|
||||
CREATE TABLE t1 (id INT PRIMARY KEY, b CHAR(100) DEFAULT 'initial value')
|
||||
ENGINE=MyISAM;
|
||||
|
@ -3,7 +3,7 @@ UPDATE performance_schema.setup_instruments SET enabled = 'YES'
|
||||
WHERE name LIKE 'wait/synch/mutex/%'
|
||||
OR name LIKE 'wait/synch/rwlock/%';
|
||||
truncate table performance_schema.events_statements_summary_by_digest;
|
||||
flush status;
|
||||
flush global status;
|
||||
select NAME from performance_schema.mutex_instances
|
||||
where NAME = 'wait/synch/mutex/mysys/THR_LOCK::mutex' GROUP BY NAME;
|
||||
NAME
|
||||
|
@ -1,5 +1,5 @@
|
||||
call mtr.add_suppression("santa.claus.ipv4.example.com");
|
||||
flush status;
|
||||
flush global status;
|
||||
flush hosts;
|
||||
flush user_resources;
|
||||
flush privileges;
|
||||
|
@ -1,5 +1,5 @@
|
||||
call mtr.add_suppression("santa.claus.ipv4.example.com");
|
||||
flush status;
|
||||
flush global status;
|
||||
flush hosts;
|
||||
flush user_resources;
|
||||
flush privileges;
|
||||
|
@ -1,5 +1,5 @@
|
||||
call mtr.add_suppression("santa.claus.ipv4.example.com");
|
||||
flush status;
|
||||
flush global status;
|
||||
flush hosts;
|
||||
flush user_resources;
|
||||
flush privileges;
|
||||
|
@ -1,5 +1,5 @@
|
||||
call mtr.add_suppression("santa.claus.ipv4.example.com");
|
||||
flush status;
|
||||
flush global status;
|
||||
flush hosts;
|
||||
flush user_resources;
|
||||
flush privileges;
|
||||
|
@ -1,5 +1,5 @@
|
||||
call mtr.add_suppression("192.0.2.4");
|
||||
flush status;
|
||||
flush global status;
|
||||
flush hosts;
|
||||
flush user_resources;
|
||||
flush privileges;
|
||||
|
@ -1,5 +1,5 @@
|
||||
call mtr.add_suppression("192.0.2.4");
|
||||
flush status;
|
||||
flush global status;
|
||||
flush hosts;
|
||||
flush user_resources;
|
||||
flush privileges;
|
||||
|
@ -1,5 +1,5 @@
|
||||
call mtr.add_suppression("santa.claus.ipv4.example.com");
|
||||
flush status;
|
||||
flush global status;
|
||||
flush hosts;
|
||||
flush user_resources;
|
||||
flush privileges;
|
||||
|
@ -1,5 +1,5 @@
|
||||
call mtr.add_suppression("santa.claus.ipv4.example.com");
|
||||
flush status;
|
||||
flush global status;
|
||||
flush hosts;
|
||||
flush user_resources;
|
||||
flush privileges;
|
||||
|
@ -1,5 +1,5 @@
|
||||
install soname 'auth_ed25519';
|
||||
flush status;
|
||||
flush global status;
|
||||
flush hosts;
|
||||
flush user_resources;
|
||||
flush privileges;
|
||||
|
@ -1,4 +1,4 @@
|
||||
flush status;
|
||||
flush global status;
|
||||
flush hosts;
|
||||
flush user_resources;
|
||||
flush privileges;
|
||||
|
@ -1,4 +1,4 @@
|
||||
flush status;
|
||||
flush global status;
|
||||
flush hosts;
|
||||
flush user_resources;
|
||||
flush privileges;
|
||||
|
@ -1,5 +1,5 @@
|
||||
call mtr.add_suppression("192.0.2.4");
|
||||
flush status;
|
||||
flush global status;
|
||||
flush hosts;
|
||||
flush user_resources;
|
||||
flush privileges;
|
||||
|
@ -1,4 +1,4 @@
|
||||
flush status;
|
||||
flush global status;
|
||||
flush hosts;
|
||||
flush user_resources;
|
||||
flush privileges;
|
||||
|
@ -1,5 +1,5 @@
|
||||
call mtr.add_suppression("192.0.2.4");
|
||||
flush status;
|
||||
flush global status;
|
||||
flush hosts;
|
||||
flush user_resources;
|
||||
flush privileges;
|
||||
|
@ -1,5 +1,5 @@
|
||||
call mtr.add_suppression("192.0.2.4");
|
||||
flush status;
|
||||
flush global status;
|
||||
flush hosts;
|
||||
flush user_resources;
|
||||
flush privileges;
|
||||
|
@ -1,5 +1,5 @@
|
||||
call mtr.add_suppression("192.0.2.4");
|
||||
flush status;
|
||||
flush global status;
|
||||
flush hosts;
|
||||
flush user_resources;
|
||||
flush privileges;
|
||||
|
@ -1,5 +1,5 @@
|
||||
call mtr.add_suppression("192.0.2.4");
|
||||
flush status;
|
||||
flush global status;
|
||||
flush hosts;
|
||||
flush user_resources;
|
||||
flush privileges;
|
||||
|
@ -1,4 +1,4 @@
|
||||
flush status;
|
||||
flush global status;
|
||||
flush hosts;
|
||||
flush user_resources;
|
||||
flush privileges;
|
||||
|
@ -1,4 +1,4 @@
|
||||
flush status;
|
||||
flush global status;
|
||||
flush hosts;
|
||||
flush user_resources;
|
||||
flush privileges;
|
||||
|
@ -1,5 +1,5 @@
|
||||
call mtr.add_suppression("santa.claus.ipv6.example.com");
|
||||
flush status;
|
||||
flush global status;
|
||||
flush hosts;
|
||||
flush user_resources;
|
||||
flush privileges;
|
||||
|
@ -1,5 +1,5 @@
|
||||
call mtr.add_suppression("santa.claus.ipv6.example.com");
|
||||
flush status;
|
||||
flush global status;
|
||||
flush hosts;
|
||||
flush user_resources;
|
||||
flush privileges;
|
||||
|
@ -1,5 +1,5 @@
|
||||
call mtr.add_suppression("santa.claus.ipv6.example.com");
|
||||
flush status;
|
||||
flush global status;
|
||||
flush hosts;
|
||||
flush user_resources;
|
||||
flush privileges;
|
||||
|
@ -1,5 +1,5 @@
|
||||
call mtr.add_suppression("santa.claus.ipv6.example.com");
|
||||
flush status;
|
||||
flush global status;
|
||||
flush hosts;
|
||||
flush user_resources;
|
||||
flush privileges;
|
||||
|
@ -1,5 +1,5 @@
|
||||
call mtr.add_suppression("192.0.2.4");
|
||||
flush status;
|
||||
flush global status;
|
||||
flush hosts;
|
||||
flush user_resources;
|
||||
flush privileges;
|
||||
|
@ -1,4 +1,4 @@
|
||||
flush status;
|
||||
flush global status;
|
||||
flush hosts;
|
||||
flush user_resources;
|
||||
flush privileges;
|
||||
|
@ -1,5 +1,5 @@
|
||||
call mtr.add_suppression("santa.claus.ipv6.example.com");
|
||||
flush status;
|
||||
flush global status;
|
||||
flush hosts;
|
||||
flush user_resources;
|
||||
flush privileges;
|
||||
|
@ -1,5 +1,5 @@
|
||||
call mtr.add_suppression("santa.claus.ipv6.example.com");
|
||||
flush status;
|
||||
flush global status;
|
||||
flush hosts;
|
||||
flush user_resources;
|
||||
flush privileges;
|
||||
|
@ -1,4 +1,4 @@
|
||||
flush status;
|
||||
flush global status;
|
||||
flush hosts;
|
||||
flush user_resources;
|
||||
flush privileges;
|
||||
|
@ -1,4 +1,4 @@
|
||||
flush status;
|
||||
flush global status;
|
||||
flush hosts;
|
||||
flush user_resources;
|
||||
flush privileges;
|
||||
|
@ -1,4 +1,4 @@
|
||||
flush status;
|
||||
flush global status;
|
||||
flush hosts;
|
||||
flush user_resources;
|
||||
flush privileges;
|
||||
|
@ -1,5 +1,5 @@
|
||||
call mtr.add_suppression("2001:db8::6:6");
|
||||
flush status;
|
||||
flush global status;
|
||||
flush hosts;
|
||||
flush user_resources;
|
||||
flush privileges;
|
||||
|
@ -1,5 +1,5 @@
|
||||
call mtr.add_suppression("2001:db8::6:6");
|
||||
flush status;
|
||||
flush global status;
|
||||
flush hosts;
|
||||
flush user_resources;
|
||||
flush privileges;
|
||||
|
@ -1,5 +1,5 @@
|
||||
call mtr.add_suppression("2001:db8::6:6");
|
||||
flush status;
|
||||
flush global status;
|
||||
flush hosts;
|
||||
flush user_resources;
|
||||
flush privileges;
|
||||
|
@ -1,5 +1,5 @@
|
||||
call mtr.add_suppression("2001:db8::6:6");
|
||||
flush status;
|
||||
flush global status;
|
||||
flush hosts;
|
||||
flush user_resources;
|
||||
flush privileges;
|
||||
|
@ -1,4 +1,4 @@
|
||||
flush status;
|
||||
flush global status;
|
||||
flush hosts;
|
||||
flush user_resources;
|
||||
flush privileges;
|
||||
|
@ -1,4 +1,4 @@
|
||||
flush status;
|
||||
flush global status;
|
||||
flush hosts;
|
||||
flush user_resources;
|
||||
flush privileges;
|
||||
|
@ -1,4 +1,4 @@
|
||||
flush status;
|
||||
flush global status;
|
||||
flush hosts;
|
||||
flush user_resources;
|
||||
flush privileges;
|
||||
@ -52,7 +52,7 @@ Connection_errors_select 0
|
||||
Connection_errors_tcpwrap 0
|
||||
# Dumping performance_schema.host_cache
|
||||
SET @@GLOBAL.debug_dbug = @saved_dbug;
|
||||
flush status;
|
||||
flush global status;
|
||||
show global status like "connection_errors_%";
|
||||
Variable_name Value
|
||||
Connection_errors_accept 0
|
||||
|
@ -7,7 +7,7 @@ update performance_schema.setup_instruments set enabled='NO';
|
||||
update performance_schema.setup_instruments set enabled='YES'
|
||||
where name like "wait/io/table/%";
|
||||
truncate table performance_schema.events_waits_history_long;
|
||||
flush status;
|
||||
flush global status;
|
||||
flush tables;
|
||||
create table test.no_index_tab
|
||||
( a int, b char(30) default 'Default') engine = MyISAM;
|
||||
@ -161,6 +161,6 @@ drop table test.index_tab;
|
||||
update performance_schema.setup_consumers set enabled='NO';
|
||||
truncate performance_schema.events_waits_history_long;
|
||||
drop table test.marker;
|
||||
flush status;
|
||||
flush global status;
|
||||
update performance_schema.setup_instruments set enabled='YES';
|
||||
update performance_schema.setup_consumers set enabled='YES';
|
||||
|
@ -5,7 +5,7 @@ update performance_schema.setup_instruments set enabled='NO';
|
||||
update performance_schema.setup_instruments set enabled='YES'
|
||||
where name like "wait/io/table/%";
|
||||
truncate table performance_schema.events_waits_history_long;
|
||||
flush status;
|
||||
flush global status;
|
||||
flush tables;
|
||||
drop table if exists test.no_index_tab;
|
||||
update performance_schema.setup_consumers set enabled='YES';
|
||||
@ -137,10 +137,10 @@ Performance_schema_thread_classes_lost 0
|
||||
Performance_schema_thread_instances_lost 0
|
||||
Performance_schema_users_lost 0
|
||||
truncate performance_schema.events_waits_history_long;
|
||||
flush status;
|
||||
flush global status;
|
||||
update performance_schema.setup_consumers set enabled='NO';
|
||||
truncate performance_schema.events_waits_history_long;
|
||||
drop table test.marker;
|
||||
flush status;
|
||||
flush global status;
|
||||
update performance_schema.setup_instruments set enabled='YES';
|
||||
update performance_schema.setup_consumers set enabled='YES';
|
||||
|
@ -77,7 +77,7 @@ prepare dump_waits_history_long from
|
||||
from performance_schema.events_waits_history_long
|
||||
where event_name = \'wait/lock/metadata/sql/mdl\';";
|
||||
truncate table performance_schema.events_statements_summary_by_digest;
|
||||
flush status;
|
||||
flush global status;
|
||||
flush tables;
|
||||
DROP TABLE IF EXISTS t1;
|
||||
CREATE TABLE t1 (id INT PRIMARY KEY, b CHAR(100) DEFAULT 'initial value');
|
||||
|
@ -5,7 +5,7 @@ update performance_schema.setup_instruments set enabled='NO';
|
||||
update performance_schema.setup_instruments set enabled='YES'
|
||||
where name like "wait/io/table/%";
|
||||
truncate table performance_schema.events_waits_history_long;
|
||||
flush status;
|
||||
flush global status;
|
||||
flush tables;
|
||||
drop table if exists test.no_index_tab;
|
||||
update performance_schema.setup_consumers set enabled='YES';
|
||||
@ -136,10 +136,10 @@ Performance_schema_thread_classes_lost 0
|
||||
Performance_schema_thread_instances_lost 0
|
||||
Performance_schema_users_lost 0
|
||||
truncate performance_schema.events_waits_history_long;
|
||||
flush status;
|
||||
flush global status;
|
||||
update performance_schema.setup_consumers set enabled='NO';
|
||||
truncate performance_schema.events_waits_history_long;
|
||||
drop table test.marker;
|
||||
flush status;
|
||||
flush global status;
|
||||
update performance_schema.setup_instruments set enabled='YES';
|
||||
update performance_schema.setup_consumers set enabled='YES';
|
||||
|
@ -5,7 +5,7 @@ update performance_schema.setup_instruments set enabled='NO';
|
||||
update performance_schema.setup_instruments set enabled='YES'
|
||||
where name like "wait/io/table/%";
|
||||
truncate table performance_schema.events_waits_history_long;
|
||||
flush status;
|
||||
flush global status;
|
||||
flush tables;
|
||||
drop table if exists test.no_index_tab;
|
||||
drop table if exists test.no_index_tab_1;
|
||||
@ -168,10 +168,10 @@ Performance_schema_thread_classes_lost 0
|
||||
Performance_schema_thread_instances_lost 0
|
||||
Performance_schema_users_lost 0
|
||||
truncate performance_schema.events_waits_history_long;
|
||||
flush status;
|
||||
flush global status;
|
||||
update performance_schema.setup_consumers set enabled='NO';
|
||||
truncate performance_schema.events_waits_history_long;
|
||||
drop table test.marker;
|
||||
flush status;
|
||||
flush global status;
|
||||
update performance_schema.setup_instruments set enabled='YES';
|
||||
update performance_schema.setup_consumers set enabled='YES';
|
||||
|
@ -9,7 +9,7 @@ FLUSH PRIVILEGES;
|
||||
CREATE TABLE test.t_range(a int, b int, PRIMARY KEY(a));
|
||||
INSERT INTO test.t_range values (1, 1), (2,2), (3, 3), (4, 4), (5, 5);
|
||||
INSERT INTO test.t_range values (6, 6), (7,7), (8, 8), (9, 9), (10, 10);
|
||||
FLUSH STATUS;
|
||||
FLUSH GLOBAL STATUS;
|
||||
SELECT * from test.t_range where (a >= 3) AND (a <= 5);
|
||||
a b
|
||||
3 3
|
||||
|
@ -23,7 +23,7 @@ update performance_schema.setup_instruments set enabled='NO';
|
||||
update performance_schema.setup_instruments set enabled='YES'
|
||||
where name like "wait/io/table/%";
|
||||
truncate table performance_schema.events_waits_history_long;
|
||||
flush status;
|
||||
flush global status;
|
||||
flush tables;
|
||||
update performance_schema.setup_consumers set enabled = 'YES';
|
||||
insert into test1.t2 select * from test.t1;
|
||||
@ -105,12 +105,12 @@ Performance_schema_thread_classes_lost 0
|
||||
Performance_schema_thread_instances_lost 0
|
||||
Performance_schema_users_lost 0
|
||||
truncate performance_schema.events_waits_history_long;
|
||||
flush status;
|
||||
flush global status;
|
||||
drop table test.t1;
|
||||
drop schema test1;
|
||||
update performance_schema.setup_consumers set enabled='NO';
|
||||
truncate performance_schema.events_waits_history_long;
|
||||
drop table test.marker;
|
||||
flush status;
|
||||
flush global status;
|
||||
update performance_schema.setup_instruments set enabled='YES';
|
||||
update performance_schema.setup_consumers set enabled='YES';
|
||||
|
@ -5,7 +5,7 @@ update performance_schema.setup_consumers
|
||||
set enabled='YES';
|
||||
truncate table performance_schema.events_waits_history_long;
|
||||
truncate table performance_schema.events_statements_summary_by_digest;
|
||||
flush status;
|
||||
flush global status;
|
||||
drop table if exists test.no_index_tab;
|
||||
create table test.no_index_tab ( a varchar(255), b int ) engine=myisam;
|
||||
insert into no_index_tab set a = 'foo', b = 1;
|
||||
|
@ -5,7 +5,7 @@ update performance_schema.setup_instruments set enabled='NO';
|
||||
update performance_schema.setup_instruments set enabled='YES'
|
||||
where name like "wait/io/table/%";
|
||||
truncate table performance_schema.events_waits_history_long;
|
||||
flush status;
|
||||
flush global status;
|
||||
flush tables;
|
||||
drop table if exists test.no_index_tab;
|
||||
update performance_schema.setup_consumers set enabled='YES';
|
||||
@ -136,10 +136,10 @@ Performance_schema_thread_classes_lost 0
|
||||
Performance_schema_thread_instances_lost 0
|
||||
Performance_schema_users_lost 0
|
||||
truncate performance_schema.events_waits_history_long;
|
||||
flush status;
|
||||
flush global status;
|
||||
update performance_schema.setup_consumers set enabled='NO';
|
||||
truncate performance_schema.events_waits_history_long;
|
||||
drop table test.marker;
|
||||
flush status;
|
||||
flush global status;
|
||||
update performance_schema.setup_instruments set enabled='YES';
|
||||
update performance_schema.setup_consumers set enabled='YES';
|
||||
|
@ -1,6 +1,6 @@
|
||||
drop procedure if exists check_instrument;
|
||||
truncate table performance_schema.events_statements_summary_by_digest;
|
||||
flush status;
|
||||
flush global status;
|
||||
create procedure check_instrument(in instr_name varchar(128))
|
||||
begin
|
||||
declare save_count_expected integer;
|
||||
|
@ -5,7 +5,7 @@ update performance_schema.setup_instruments set enabled='NO';
|
||||
update performance_schema.setup_instruments set enabled='YES'
|
||||
where name like "wait/io/table/%";
|
||||
truncate table performance_schema.events_waits_history_long;
|
||||
flush status;
|
||||
flush global status;
|
||||
flush tables;
|
||||
drop table if exists test.no_index_tab;
|
||||
update performance_schema.setup_consumers set enabled='YES';
|
||||
@ -138,10 +138,10 @@ Performance_schema_thread_classes_lost 0
|
||||
Performance_schema_thread_instances_lost 0
|
||||
Performance_schema_users_lost 0
|
||||
truncate performance_schema.events_waits_history_long;
|
||||
flush status;
|
||||
flush global status;
|
||||
update performance_schema.setup_consumers set enabled='NO';
|
||||
truncate performance_schema.events_waits_history_long;
|
||||
drop table test.marker;
|
||||
flush status;
|
||||
flush global status;
|
||||
update performance_schema.setup_instruments set enabled='YES';
|
||||
update performance_schema.setup_consumers set enabled='YES';
|
||||
|
@ -6,7 +6,7 @@ update performance_schema.setup_instruments set enabled='NO';
|
||||
update performance_schema.setup_instruments set enabled='YES'
|
||||
where name like "wait/io/table/%";
|
||||
truncate table performance_schema.events_waits_history_long;
|
||||
flush status;
|
||||
flush global status;
|
||||
flush tables;
|
||||
# We are forced to suppress here the server response.
|
||||
optimize table mysql.user;
|
||||
@ -167,11 +167,11 @@ Performance_schema_thread_classes_lost 0
|
||||
Performance_schema_thread_instances_lost 0
|
||||
Performance_schema_users_lost 0
|
||||
truncate performance_schema.events_waits_history_long;
|
||||
flush status;
|
||||
flush global status;
|
||||
update performance_schema.setup_consumers set enabled='NO';
|
||||
truncate performance_schema.events_waits_history_long;
|
||||
drop table test.marker;
|
||||
flush status;
|
||||
flush global status;
|
||||
update performance_schema.setup_instruments set enabled='YES';
|
||||
update performance_schema.setup_consumers set enabled='YES';
|
||||
update performance_schema.setup_objects set enabled='NO'
|
||||
|
@ -5,7 +5,7 @@ insert into t1 values (1), (2), (3);
|
||||
SET GLOBAL query_cache_size=1355776;
|
||||
flush query cache;
|
||||
reset query cache;
|
||||
flush status;
|
||||
flush global status;
|
||||
select * from t1;
|
||||
a
|
||||
1
|
||||
@ -70,4 +70,4 @@ Variable_name Value
|
||||
Qcache_hits 1
|
||||
SET GLOBAL query_cache_size=@save_query_cache_size;
|
||||
drop table t1;
|
||||
flush status;
|
||||
flush global status;
|
||||
|
@ -15,7 +15,7 @@ update performance_schema.setup_instruments set enabled='NO';
|
||||
update performance_schema.setup_instruments set enabled='YES'
|
||||
where name like "wait/io/table/%";
|
||||
truncate table performance_schema.events_waits_history_long;
|
||||
flush status;
|
||||
flush global status;
|
||||
flush tables;
|
||||
update performance_schema.setup_consumers set enabled = 'YES';
|
||||
set autocommit = off;
|
||||
@ -87,11 +87,11 @@ Performance_schema_thread_classes_lost 0
|
||||
Performance_schema_thread_instances_lost 0
|
||||
Performance_schema_users_lost 0
|
||||
truncate performance_schema.events_waits_history_long;
|
||||
flush status;
|
||||
flush global status;
|
||||
drop table test.t1;
|
||||
update performance_schema.setup_consumers set enabled='NO';
|
||||
truncate performance_schema.events_waits_history_long;
|
||||
drop table test.marker;
|
||||
flush status;
|
||||
flush global status;
|
||||
update performance_schema.setup_instruments set enabled='YES';
|
||||
update performance_schema.setup_consumers set enabled='YES';
|
||||
|
@ -7,7 +7,7 @@ SET @@session.sql_log_bin=OFF;
|
||||
# CREATE 3 CLIENTS, 3 CONNECTIONS, RESULTS TABLE
|
||||
connection default;
|
||||
USE test;
|
||||
flush status;
|
||||
flush global status;
|
||||
#
|
||||
# Create results table
|
||||
CREATE TABLE test.status_results
|
||||
@ -492,10 +492,10 @@ variable_name h1 h2 h3 delta host Expected
|
||||
Handler_delete 6 0 0 6 6 OKp
|
||||
Handler_rollback 6 0 0 6 6 OKp
|
||||
# ================================================================================
|
||||
# TEST 8: FLUSH STATUS should clear account, host and user status
|
||||
# TEST 8: FLUSH GLOBAL STATUS should clear account, host and user status
|
||||
# ================================================================================
|
||||
#
|
||||
FLUSH STATUS;
|
||||
FLUSH GLOBAL STATUS;
|
||||
#
|
||||
SELECT * FROM status_by_account WHERE user IN ('user1', 'user2', 'user3') AND variable_name IN ('handler_delete');
|
||||
USER HOST VARIABLE_NAME VARIABLE_VALUE
|
||||
|
@ -188,7 +188,7 @@ select variable_value > 0 from information_schema.global_status
|
||||
where variable_name like 'PERFORMANCE_SCHEMA_INDEX_STAT_LOST';
|
||||
variable_value > 0
|
||||
1
|
||||
FLUSH STATUS;
|
||||
FLUSH GLOBAL STATUS;
|
||||
select variable_value from information_schema.global_status
|
||||
where variable_name like 'PERFORMANCE_SCHEMA_INDEX_STAT_LOST';
|
||||
variable_value
|
||||
@ -239,7 +239,7 @@ select variable_value > 0 from information_schema.global_status
|
||||
where variable_name like 'PERFORMANCE_SCHEMA_INDEX_STAT_LOST';
|
||||
variable_value > 0
|
||||
1
|
||||
FLUSH STATUS;
|
||||
FLUSH GLOBAL STATUS;
|
||||
update performance_schema.setup_objects set ENABLED='NO' where OBJECT_TYPE='TABLE';
|
||||
insert into db1.t1 values('5', 'abc');
|
||||
insert into db1.t1 values('6', 'abc');
|
||||
|
@ -205,7 +205,7 @@ select variable_value > 0 from information_schema.global_status
|
||||
where variable_name like 'PERFORMANCE_SCHEMA_TABLE_LOCK_STAT_LOST';
|
||||
variable_value > 0
|
||||
1
|
||||
flush status;
|
||||
flush global status;
|
||||
update performance_schema.setup_objects set ENABLED='NO'
|
||||
where OBJECT_TYPE='TABLE' and OBJECT_SCHEMA="%";
|
||||
insert into db1.t1 values('5', 'abc');
|
||||
|
@ -178,7 +178,7 @@ select variable_value > 0 from information_schema.global_status
|
||||
where variable_name like 'PERFORMANCE_SCHEMA_INDEX_STAT_LOST';
|
||||
variable_value > 0
|
||||
1
|
||||
FLUSH STATUS;
|
||||
FLUSH GLOBAL STATUS;
|
||||
select variable_value from information_schema.global_status
|
||||
where variable_name like 'PERFORMANCE_SCHEMA_INDEX_STAT_LOST';
|
||||
variable_value
|
||||
|
@ -155,7 +155,7 @@ select variable_value > 0 from information_schema.global_status
|
||||
where variable_name like 'PERFORMANCE_SCHEMA_METADATA_LOCK_LOST';
|
||||
variable_value > 0
|
||||
1
|
||||
FLUSH STATUS;
|
||||
FLUSH GLOBAL STATUS;
|
||||
select variable_value from information_schema.global_status
|
||||
where variable_name like 'PERFORMANCE_SCHEMA_METADATA_LOCK_LOST';
|
||||
variable_value
|
||||
|
@ -206,7 +206,7 @@ DROP TABLE t1;
|
||||
show global status like "%performance_schema_prepared_statements_lost%";
|
||||
Variable_name Value
|
||||
Performance_schema_prepared_statements_lost 4
|
||||
flush status;
|
||||
flush global status;
|
||||
show global status like "%performance_schema_prepared_statements_lost%";
|
||||
Variable_name Value
|
||||
Performance_schema_prepared_statements_lost 0
|
||||
|
@ -170,7 +170,7 @@ select variable_value > 0 from information_schema.global_status
|
||||
where variable_name like 'PERFORMANCE_SCHEMA_TABLE_LOCK_STAT_LOST';
|
||||
variable_value > 0
|
||||
1
|
||||
FLUSH STATUS;
|
||||
FLUSH GLOBAL STATUS;
|
||||
select variable_value from information_schema.global_status
|
||||
where variable_name like 'PERFORMANCE_SCHEMA_TABLE_LOCK_STAT_LOST';
|
||||
variable_value
|
||||
|
@ -5,7 +5,7 @@ update performance_schema.setup_instruments set enabled='NO';
|
||||
update performance_schema.setup_instruments set enabled='YES'
|
||||
where name like "wait/io/table/%";
|
||||
truncate table performance_schema.events_waits_history_long;
|
||||
flush status;
|
||||
flush global status;
|
||||
flush tables;
|
||||
drop temporary table if exists test.no_index_tab;
|
||||
update performance_schema.setup_consumers set enabled = 'YES';
|
||||
@ -117,10 +117,10 @@ Performance_schema_thread_classes_lost 0
|
||||
Performance_schema_thread_instances_lost 0
|
||||
Performance_schema_users_lost 0
|
||||
truncate performance_schema.events_waits_history_long;
|
||||
flush status;
|
||||
flush global status;
|
||||
update performance_schema.setup_consumers set enabled='NO';
|
||||
truncate performance_schema.events_waits_history_long;
|
||||
drop table test.marker;
|
||||
flush status;
|
||||
flush global status;
|
||||
update performance_schema.setup_instruments set enabled='YES';
|
||||
update performance_schema.setup_consumers set enabled='YES';
|
||||
|
@ -1,4 +1,4 @@
|
||||
flush status;
|
||||
flush global status;
|
||||
SET @saved_thread_cache_size = @@global.thread_cache_size;
|
||||
set global thread_cache_size = 0;
|
||||
show global variables like "thread_cache_size";
|
||||
|
@ -5,7 +5,7 @@ update performance_schema.setup_instruments set enabled='NO';
|
||||
update performance_schema.setup_instruments set enabled='YES'
|
||||
where name like "wait/io/table/%";
|
||||
truncate table performance_schema.events_waits_history_long;
|
||||
flush status;
|
||||
flush global status;
|
||||
flush tables;
|
||||
drop table if exists test.t1;
|
||||
drop table if exists test.t2;
|
||||
@ -190,12 +190,12 @@ Performance_schema_thread_classes_lost 0
|
||||
Performance_schema_thread_instances_lost 0
|
||||
Performance_schema_users_lost 0
|
||||
truncate performance_schema.events_waits_history_long;
|
||||
flush status;
|
||||
flush global status;
|
||||
drop table test.t1;
|
||||
drop table test.t2;
|
||||
update performance_schema.setup_consumers set enabled='NO';
|
||||
truncate performance_schema.events_waits_history_long;
|
||||
drop table test.marker;
|
||||
flush status;
|
||||
flush global status;
|
||||
update performance_schema.setup_instruments set enabled='YES';
|
||||
update performance_schema.setup_consumers set enabled='YES';
|
||||
|
@ -5,7 +5,7 @@ update performance_schema.setup_instruments set enabled='NO';
|
||||
update performance_schema.setup_instruments set enabled='YES'
|
||||
where name like "wait/io/table/%";
|
||||
truncate table performance_schema.events_waits_history_long;
|
||||
flush status;
|
||||
flush global status;
|
||||
flush tables;
|
||||
drop view if exists test.v1;
|
||||
drop table if exists test.no_index_tab;
|
||||
@ -145,10 +145,10 @@ Performance_schema_thread_classes_lost 0
|
||||
Performance_schema_thread_instances_lost 0
|
||||
Performance_schema_users_lost 0
|
||||
truncate performance_schema.events_waits_history_long;
|
||||
flush status;
|
||||
flush global status;
|
||||
update performance_schema.setup_consumers set enabled='NO';
|
||||
truncate performance_schema.events_waits_history_long;
|
||||
drop table test.marker;
|
||||
flush status;
|
||||
flush global status;
|
||||
update performance_schema.setup_instruments set enabled='YES';
|
||||
update performance_schema.setup_consumers set enabled='YES';
|
||||
|
Reference in New Issue
Block a user