mirror of
https://github.com/MariaDB/server.git
synced 2025-02-07 06:12:18 +01:00
a74b01ea0e
InnoDB duplicates file descriptor returned by create_temp_file() to workaround further inconsistent use of this descriptor. Use mysys file descriptors consistently for innobase_mysql_tmpfile(path). Mostly close it by appropriate mysys wrappers.
21 lines
924 B
Text
21 lines
924 B
Text
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%';
|
|
connect ddl, localhost, root,,;
|
|
update performance_schema.setup_instruments set enabled='yes';
|
|
update performance_schema.setup_consumers set enabled='yes';
|
|
CREATE TABLE t1 (a serial, b varchar(255)) ENGINE=InnoDB;
|
|
BEGIN;
|
|
COMMIT;
|
|
SET DEBUG_SYNC = 'row_log_apply_before SIGNAL go WAIT_FOR gone';
|
|
ALTER TABLE t1 ADD INDEX(b), ALGORITHM=INPLACE;
|
|
connection default;
|
|
SET DEBUG_SYNC = 'now WAIT_FOR go';
|
|
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%';
|
|
SELECT @final_count - @init_count;
|
|
@final_count - @init_count
|
|
10
|
|
SET DEBUG_SYNC = 'now SIGNAL gone';
|
|
connection ddl;
|
|
disconnect ddl;
|
|
connection default;
|
|
SET DEBUG_SYNC = 'RESET';
|
|
DROP TABLE t1;
|