Current Path : /usr/opt/mysql57/mysql-test/suite/innodb/r/ |
FreeBSD hs32.drive.ne.jp 9.1-RELEASE FreeBSD 9.1-RELEASE #1: Wed Jan 14 12:18:08 JST 2015 root@hs32.drive.ne.jp:/sys/amd64/compile/hs32 amd64 |
Current File : //usr/opt/mysql57/mysql-test/suite/innodb/r/bulk_create_index_online.result |
# # BUG#19316315 CRASH RECOVERY FAILS AFTER ONLINE ADD INDEX # CREATE TABLE t1 (c1 INT PRIMARY KEY, c2 INT) ENGINE=InnoDB; INSERT INTO t1 VALUES (1,1), (2,2), (3,3), (4,4), (5,5); SET DEBUG_SYNC = 'RESET'; SET DEBUG_SYNC = 'row_log_apply_after SIGNAL apply_after WAIT_FOR insert_after'; ALTER TABLE t1 ADD UNIQUE INDEX(c2); SET DEBUG_SYNC = 'now WAIT_FOR apply_after'; INSERT INTO t1 VALUES(6, 6); # Kill and restart SELECT * FROM t1; c1 c2 1 1 2 2 3 3 4 4 5 5 6 6 DROP TABLE t1; CREATE TABLE parent (a INT PRIMARY KEY, b INT NOT NULL) ENGINE = InnoDB; INSERT INTO parent VALUES(1,2),(2,2); CREATE TABLE child (a INT PRIMARY KEY, b INT NOT NULL) ENGINE = InnoDB; INSERT INTO child VALUES (10, 2); SET DEBUG_SYNC = 'innodb_inplace_alter_table_enter SIGNAL start_create WAIT_FOR go_ahead'; CREATE UNIQUE INDEX idx ON parent(b);; SET DEBUG_SYNC = 'now WAIT_FOR start_create'; INSERT INTO parent VALUES(4, 2); SET DEBUG_SYNC = 'now SIGNAL go_ahead'; ERROR 23000: Duplicate entry '2' for key 'idx' SET DEBUG_SYNC = 'now SIGNAL conn_add_fk'; SET DEBUG_SYNC = 'now WAIT_FOR conn_add_fk'; ALTER TABLE child ADD CONSTRAINT cfx FOREIGN KEY (b) REFERENCES parent(b); ERROR HY000: Cannot add foreign key constraint DROP TABLE child; DROP TABLE parent;