Skip to content
This repository was archived by the owner on Aug 28, 2024. It is now read-only.

Commit 3c5d271

Browse files
committed
Misc test clean up
1 parent 8ecb0e3 commit 3c5d271

File tree

4 files changed

+12
-8
lines changed

4 files changed

+12
-8
lines changed

mysql-test/suite/sysschema/include/sys_config_cleanup.inc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Reset the sys.sys_config table
22

3-
# Note, we have to disable the triggers to reset the set_by column back to NULL
3+
# Note, we have to disable the triggers to reset the set_by column back to NULL
44
# as the sys.sys_config_update_set_user trigger will overwrite it to the current user
55
SET @sys.ignore_sys_config_triggers := true;
66

mysql-test/suite/sysschema/r/all_sys_objects_exist.result

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ schema_index_statistics
3030
schema_object_overview
3131
schema_redundant_indexes
3232
schema_tables_with_full_table_scans
33+
schema_table_lock_waits
3334
schema_table_statistics
3435
schema_table_statistics_with_buffer
3536
schema_unused_indexes
@@ -81,6 +82,7 @@ x$ps_schema_table_statistics_io
8182
x$schema_flattened_keys
8283
x$schema_index_statistics
8384
x$schema_tables_with_full_table_scans
85+
x$schema_table_lock_waits
8486
x$schema_table_statistics
8587
x$schema_table_statistics_with_buffer
8688
x$session
@@ -116,8 +118,10 @@ ps_is_consumer_enabled FUNCTION
116118
ps_is_instrument_default_enabled FUNCTION
117119
ps_is_instrument_default_timed FUNCTION
118120
ps_is_thread_instrumented FUNCTION
121+
ps_thread_account FUNCTION
119122
ps_thread_id FUNCTION
120123
ps_thread_stack FUNCTION
124+
ps_thread_trx_info FUNCTION
121125
sys_get_config FUNCTION
122126
create_synonym_db PROCEDURE
123127
diagnostics PROCEDURE

mysql-test/suite/sysschema/r/fn_ps_is_instrument_default_enabled.result

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
SELECT sys.ps_is_instrument_default_enabled('wait/io/file/sql/binlog');
2-
sys.ps_is_instrument_default_enabled('wait/io/file/sql/binlog')
1+
SELECT sys.ps_is_instrument_default_enabled('memory/performance_schema/internal_buffers');
2+
sys.ps_is_instrument_default_enabled('memory/performance_schema/internal_buffers')
33
YES
44
SELECT sys.ps_is_instrument_default_enabled('statement/sql/select');
55
sys.ps_is_instrument_default_enabled('statement/sql/select')
@@ -10,6 +10,9 @@ YES
1010
SELECT sys.ps_is_instrument_default_enabled('statement/com/Prepare');
1111
sys.ps_is_instrument_default_enabled('statement/com/Prepare')
1212
YES
13+
SELECT sys.ps_is_instrument_default_enabled('wait/io/file/sql/binlog');
14+
sys.ps_is_instrument_default_enabled('wait/io/file/sql/binlog')
15+
YES
1316
SELECT sys.ps_is_instrument_default_enabled('wait/io/table/sql/handler');
1417
sys.ps_is_instrument_default_enabled('wait/io/table/sql/handler')
1518
YES
@@ -40,9 +43,6 @@ NO
4043
SELECT sys.ps_is_instrument_default_enabled('wait/io/socket/sql/server_tcpip_socket');
4144
sys.ps_is_instrument_default_enabled('wait/io/socket/sql/server_tcpip_socket')
4245
NO
43-
SELECT sys.ps_is_instrument_default_enabled('memory/performance_schema/internal_buffers');
44-
sys.ps_is_instrument_default_enabled('memory/performance_schema/internal_buffers')
45-
NO
4646
SELECT sys.ps_is_instrument_default_enabled('wait/lock/metadata/sql/mdl');
4747
sys.ps_is_instrument_default_enabled('wait/lock/metadata/sql/mdl')
4848
NO

mysql-test/suite/sysschema/t/fn_ps_is_instrument_default_enabled.test

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,11 @@
33
# Verify the sys.ps_is_instrument_default_enabled() function perfoms as expected
44

55
# Should all be enabled
6-
SELECT sys.ps_is_instrument_default_enabled('wait/io/file/sql/binlog');
6+
SELECT sys.ps_is_instrument_default_enabled('memory/performance_schema/internal_buffers');
77
SELECT sys.ps_is_instrument_default_enabled('statement/sql/select');
88
SELECT sys.ps_is_instrument_default_enabled('statement/sp/error');
99
SELECT sys.ps_is_instrument_default_enabled('statement/com/Prepare');
10+
SELECT sys.ps_is_instrument_default_enabled('wait/io/file/sql/binlog');
1011
SELECT sys.ps_is_instrument_default_enabled('wait/io/table/sql/handler');
1112
SELECT sys.ps_is_instrument_default_enabled('wait/lock/table/sql/handler');
1213
SELECT sys.ps_is_instrument_default_enabled('idle');
@@ -19,5 +20,4 @@ SELECT sys.ps_is_instrument_default_enabled('wait/synch/cond/sql/MYSQL_BIN_LOG::
1920
SELECT sys.ps_is_instrument_default_enabled('stage/sql/end');
2021
SELECT sys.ps_is_instrument_default_enabled('transaction');
2122
SELECT sys.ps_is_instrument_default_enabled('wait/io/socket/sql/server_tcpip_socket');
22-
SELECT sys.ps_is_instrument_default_enabled('memory/performance_schema/internal_buffers');
2323
SELECT sys.ps_is_instrument_default_enabled('wait/lock/metadata/sql/mdl');

0 commit comments

Comments
 (0)