mysql5/mysql-5.7.27/mysql-test/suite/innodb/r/create_tablespace_notembedded.result

22 lines
692 B
Plaintext

#
# Bug #20763179 SEGV WHEN CREATE TABLESPACE IS EXECUTED IN READ ONLY MODE
#
# Check CREATE TABLESPACE is handled properly in read-only mode
CREATE TABLESPACE s1 ADD DATAFILE 's1.ibd' ENGINE InnoDB;
# restart: --innodb_read_only
CREATE TABLESPACE s2 ADD DATAFILE 's2.ibd' ENGINE InnoDB;
ERROR HY000: Failed to create TABLESPACE s2
SHOW WARNINGS;
Level Code Message
Error 1528 Failed to create TABLESPACE s2
Error 1874 InnoDB is in read only mode.
DROP TABLESPACE s1;
ERROR HY000: Failed to drop TABLESPACE s1
SHOW WARNINGS;
Level Code Message
Error 1529 Failed to drop TABLESPACE s1
Error 1874 InnoDB is in read only mode.
# Restart in normal mode for cleanup.
# restart
DROP TABLESPACE s1;