summaryrefslogtreecommitdiff
path: root/mysql-test/suite/innodb/r/alter_inplace_perfschema.result
diff options
context:
space:
mode:
authorMarko Mäkelä <marko.makela@mariadb.com>2018-10-24 16:01:18 +0300
committerMarko Mäkelä <marko.makela@mariadb.com>2018-10-25 13:04:41 +0300
commit2549f982891f4598768f10f2aa549861ea7152d1 (patch)
tree870a7c6dbb3fbcd1fb092c181fe9325536d1c230 /mysql-test/suite/innodb/r/alter_inplace_perfschema.result
parent5dd3b52f950d688bbe9ea2e8cd10b5206198a096 (diff)
downloadmariadb-git-2549f982891f4598768f10f2aa549861ea7152d1.tar.gz
MDEV-17532 Performance_schema reports wrong directory for the temporary files of ALTER TABLE…ALGORITHM=INPLACE
row_merge_file_create_low(): Pass the directory of the temporary file to the PSI_FILE_CALL.
Diffstat (limited to 'mysql-test/suite/innodb/r/alter_inplace_perfschema.result')
-rw-r--r--mysql-test/suite/innodb/r/alter_inplace_perfschema.result15
1 files changed, 15 insertions, 0 deletions
diff --git a/mysql-test/suite/innodb/r/alter_inplace_perfschema.result b/mysql-test/suite/innodb/r/alter_inplace_perfschema.result
new file mode 100644
index 00000000000..38c8ca2f553
--- /dev/null
+++ b/mysql-test/suite/innodb/r/alter_inplace_perfschema.result
@@ -0,0 +1,15 @@
+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;
+SET DEBUG_SYNC = 'now WAIT_FOR go';
+SELECT DISTINCT object_name FROM performance_schema.events_waits_history_long
+WHERE event_name LIKE '%wait%io%file%innodb%innodb_temp_file%';
+object_name
+tmp/Innodb Merge Temp File
+SET DEBUG_SYNC = 'now SIGNAL gone';
+SET DEBUG_SYNC = 'RESET';
+DROP TABLE t1;