Debian Codegraph @

mysql-test/suite/innodb/r/alter_inplace_perfschema.result

raw
1 select count_star into @init_count from performance_schema.events_waits_summary_global_by_event_name WHERE event_name LIKE '%wait%io%file%innodb%innodb_temp_file%';
2 connect ddl, localhost, root,,;
3 update performance_schema.setup_instruments set enabled='yes';
4 update performance_schema.setup_consumers set enabled='yes';
5 CREATE TABLE t1 (a serial, b varchar(255)) ENGINE=InnoDB;
6 BEGIN;
7 COMMIT;
8 SET DEBUG_SYNC = 'row_log_apply_before SIGNAL go WAIT_FOR gone';
9 ALTER TABLE t1 ADD INDEX(b), ALGORITHM=INPLACE;
10 connection default;
11 SET DEBUG_SYNC = 'now WAIT_FOR go';
12 select count_star into @final_count from performance_schema.events_waits_summary_global_by_event_name WHERE event_name LIKE '%wait%io%file%innodb%innodb_temp_file%';
13 SELECT @final_count - @init_count;
14 @final_count - @init_count
15 10
16 SET DEBUG_SYNC = 'now SIGNAL gone';
17 connection ddl;
18 disconnect ddl;
19 connection default;
20 SET DEBUG_SYNC = 'RESET';
21 DROP TABLE t1;