Server IP : 104.21.38.3 / Your IP : 104.23.175.224 Web Server : Apache System : Linux krdc-ubuntu-s-2vcpu-4gb-amd-blr1-01.localdomain 5.15.0-142-generic #152-Ubuntu SMP Mon May 19 10:54:31 UTC 2025 x86_64 User : www ( 1000) PHP Version : 7.4.33 Disable Function : passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /www/server/mysql/src/mysql-test/suite/perfschema/r/ |
Upload File : |
drop table if exists t1; create table t1(a int) engine = myisam; insert into t1 values (1), (2), (3), (4), (5); update performance_schema.threads set instrumented = 'NO' where processlist_id = connection_id(); truncate table performance_schema.events_statements_history_long; truncate table performance_schema.events_stages_history_long; SET DEBUG_SYNC='RESET'; SET DEBUG_SYNC='copy_data_between_tables_before SIGNAL found_row WAIT_FOR wait_row EXECUTE 5'; ALTER TABLE t1 engine = innodb;; SET DEBUG_SYNC='now WAIT_FOR found_row'; select event_id from performance_schema.events_statements_current where thread_id = @con1_thread_id into @con1_stmt_id; select EVENT_NAME, WORK_COMPLETED, WORK_ESTIMATED from performance_schema.events_stages_current where (thread_id = @con1_thread_id); EVENT_NAME WORK_COMPLETED WORK_ESTIMATED stage/sql/copy to tmp table 0 5 SET DEBUG_SYNC='now SIGNAL wait_row'; SET DEBUG_SYNC='now WAIT_FOR found_row'; select EVENT_NAME, WORK_COMPLETED, WORK_ESTIMATED from performance_schema.events_stages_current where (thread_id = @con1_thread_id); EVENT_NAME WORK_COMPLETED WORK_ESTIMATED stage/sql/copy to tmp table 1 5 SET DEBUG_SYNC='now SIGNAL wait_row'; SET DEBUG_SYNC='now WAIT_FOR found_row'; select EVENT_NAME, WORK_COMPLETED, WORK_ESTIMATED from performance_schema.events_stages_current where (thread_id = @con1_thread_id); EVENT_NAME WORK_COMPLETED WORK_ESTIMATED stage/sql/copy to tmp table 2 5 SET DEBUG_SYNC='now SIGNAL wait_row'; SET DEBUG_SYNC='now WAIT_FOR found_row'; select EVENT_NAME, WORK_COMPLETED, WORK_ESTIMATED from performance_schema.events_stages_current where (thread_id = @con1_thread_id); EVENT_NAME WORK_COMPLETED WORK_ESTIMATED stage/sql/copy to tmp table 3 5 SET DEBUG_SYNC='now SIGNAL wait_row'; SET DEBUG_SYNC='now WAIT_FOR found_row'; select EVENT_NAME, WORK_COMPLETED, WORK_ESTIMATED from performance_schema.events_stages_current where (thread_id = @con1_thread_id); EVENT_NAME WORK_COMPLETED WORK_ESTIMATED stage/sql/copy to tmp table 4 5 SET DEBUG_SYNC='now SIGNAL wait_row'; select "After payload"; After payload After payload Dumping ALTER TABLE stages select EVENT_NAME, WORK_COMPLETED, WORK_ESTIMATED from performance_schema.events_stages_history_long where (thread_id = @con1_thread_id) and (nesting_event_id = @con1_stmt_id) order by thread_id, event_id; EVENT_NAME WORK_COMPLETED WORK_ESTIMATED stage/sql/starting NULL NULL stage/sql/checking permissions NULL NULL stage/sql/checking permissions NULL NULL stage/sql/init NULL NULL stage/sql/Opening tables NULL NULL stage/sql/setup NULL NULL stage/sql/creating table NULL NULL stage/sql/After create NULL NULL stage/sql/System lock NULL NULL stage/sql/copy to tmp table 5 5 stage/sql/rename result table NULL NULL stage/sql/end NULL NULL stage/sql/query end NULL NULL stage/sql/closing tables NULL NULL stage/sql/freeing items NULL NULL stage/sql/cleaning up NULL NULL SET DEBUG_SYNC='RESET'; drop table t1; update performance_schema.threads set instrumented = 'YES' where processlist_id = connection_id();