# # Verify that query results are the same with and without indexes. # --source include/have_debug_sync.inc let $table = "rwlock_instances"; let $name_column = NAME; let $target_name = wait/synch/rwlock/sql/MDL_lock::rwlock; --echo TABLE: $table --echo INDEXES: PK (OBJECT_INSTANCE_BEGIN), KEY (NAME), KEY (WRITE_LOCKED_BY_THREAD_ID) --source ../include/idx_compare_setup.inc # Get an object_instance_begin, rwlock_name --disable_query_log eval SELECT object_instance_begin, write_locked_by_thread_id INTO @object_instance_begin, @target_id FROM performance_schema.rwlock_instances WHERE name = '$target_name' LIMIT 1; --enable_query_log --echo --echo ## Test OBJECT_INSTANCE_BEGIN let $key_group = 12; --source ../include/idx_compare_load.inc --echo --echo ## Test NAME let $key_group = 13; --source ../include/idx_compare_load.inc # FIXME - HOW TO GENERATE #--echo #--echo ## Test WRITE_LOCKED_BY_THREAD_ID #let $key_group = 14; #--source ../include/idx_compare_load.inc --source ../include/idx_compare_cleanup.inc