1#
2# Bug#19904800 - MISSING DBUG_RETURN IN HA_INNOBASE::UPDATE_ROW
3#
4CREATE TABLE t1(a int PRIMARY KEY) ENGINE=InnoDB;
5CREATE TABLE t2(b int PRIMARY KEY) ENGINE=InnoDB;
6INSERT INTO t1 VALUES(1);
7INSERT INTO t2 VALUES(2);
8SET GLOBAL innodb_fast_shutdown = 0;
9# restart: --innodb-read-only
10UPDATE t1,t2 SET t1.a = 2, t2.b = 2 WHERE t1.a = 1;
11ERROR HY000: Table 't1' is read only
12# restart
13DROP TABLE t1;
14DROP TABLE t2;
15#
16# Bug#20578834 - INNODB READ ONLY MODE AND NON EXISTENT TMP DIR CRASHES SERVER
17#
18CREATE TABLE t1(a int PRIMARY KEY) ENGINE=InnoDB;
19INSERT INTO t1 VALUES(1);
20SET GLOBAL innodb_fast_shutdown=0;
21# restart: --tmpdir=/non/existent/dir/ --innodb-read-only
22SELECT * FROM t1;
23a
241
25# restart
26DROP TABLE t1;
27