Debian Codegraph @

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

raw
1 #
2 # MDEV-36017 Alter table aborts when temporary
3 # directory is full
4 #
5 CREATE TABLE t1(f1 INT NOT NULL, f2 CHAR(100),
6 f3 CHAR(100))ENGINE=InnoDB;
7 INSERT INTO t1 SELECT seq, 'a', 'b' FROM seq_1_to_4096;
8 SET DEBUG_SYNC="inplace_after_index_build SIGNAL dml_start WAIT_FOR dml_commit";
9 ALTER TABLE t1 ADD KEY(f1), ADD INDEX(f3(10));
10 connect con1,localhost,root,,,;
11 SET DEBUG_SYNC="now WAIT_FOR dml_start";
12 BEGIN;
13 INSERT INTO t1 SELECT * FROM t1;
14 SET STATEMENT DEBUG_DBUG="+d,os_file_write_fail" FOR COMMIT;
15 SET DEBUG_SYNC="now SIGNAL dml_commit";
16 connection default;
17 ERROR HY000: Temporary file write failure
18 disconnect con1;
19 CHECK TABLE t1;
20 Table Op Msg_type Msg_text
21 test.t1 check status OK
22 DROP TABLE t1;
23 SET STATEMENT DEBUG_DBUG="+d,ddl_log_write_fail" FOR
24 CREATE TABLE t1(f1 INT NOT NULL)ENGINE=InnoDB;
25 DROP TABLE t1;