Debian Codegraph @

mysql-test/suite/perfschema/t/idx_compare_rwlock_instances.test

raw
1 #
2 # Verify that query results are the same with and without indexes.
3 #
4 --source include/have_debug_sync.inc
5
6 let $table = "rwlock_instances";
7 let $name_column = NAME;
8 let $target_name = wait/synch/prlock/sql/MDL_lock::rwlock;
9
10 --echo TABLE: $table
11 --echo INDEXES: PK (OBJECT_INSTANCE_BEGIN), KEY (NAME), KEY (WRITE_LOCKED_BY_THREAD_ID)
12
13 --source ../include/idx_compare_setup.inc
14
15 # Get an object_instance_begin, rwlock_name
16 --disable_query_log
17 eval SELECT object_instance_begin, write_locked_by_thread_id
18 INTO @object_instance_begin, @target_id
19 FROM performance_schema.rwlock_instances
20 WHERE name = '$target_name' LIMIT 1;
21 --enable_query_log
22
23 --echo
24 --echo ## Test OBJECT_INSTANCE_BEGIN
25 let $key_group = 12;
26 --source ../include/idx_compare_load.inc
27
28 --echo
29 --echo ## Test NAME
30 let $key_group = 13;
31 --source ../include/idx_compare_load.inc
32
33 # FIXME - HOW TO GENERATE
34 #--echo
35 #--echo ## Test WRITE_LOCKED_BY_THREAD_ID
36 #let $key_group = 14;
37 #--source ../include/idx_compare_load.inc
38
39 --source ../include/idx_compare_cleanup.inc