| 1 |
--source include/have_debug.inc |
| 2 |
|
| 3 |
CREATE TABLESPACE ts1 ADD DATAFILE 'ts1.ibd'; |
| 4 |
|
| 5 |
SET GLOBAL DEBUG = '+d, sdi_set_failure'; |
| 6 |
--error ER_SDI_OPERATION_FAILED |
| 7 |
CREATE TABLE t1(a INT) TABLESPACE `ts1`; |
| 8 |
SET GLOBAL DEBUG = '-d, sdi_set_failure'; |
| 9 |
|
| 10 |
CREATE TABLE t1(a INT) TABLESPACE `ts1`; |
| 11 |
|
| 12 |
INSERT INTO t1 VALUES (1), (2), (3); |
| 13 |
|
| 14 |
SET GLOBAL DEBUG = '+d, sdi_delete_failure'; |
| 15 |
--error ER_SDI_OPERATION_FAILED |
| 16 |
DROP TABLE t1; |
| 17 |
SET GLOBAL DEBUG = '-d, sdi_delete_failure'; |
| 18 |
|
| 19 |
SELECT * FROM t1; |
| 20 |
|
| 21 |
DROP TABLE t1; |
| 22 |
DROP TABLESPACE ts1; |