Skip to content

Commit 0c2e4a0

Browse files
author
Marko Mäkelä
committed
Follow-up to Bug#19514950 CLEAN UP TESTS THAT KILL OR RESTART THE SERVER
Remove the file mysql-test/include/restart_readonly_mysqld.inc and use restart_mysqld.inc instead. Reviewed-by: Jimmy Yang <[email protected]>
1 parent 843ef36 commit 0c2e4a0

File tree

3 files changed

+3
-30
lines changed

3 files changed

+3
-30
lines changed

mysql-test/include/restart_readonly_mysqld.inc

Lines changed: 0 additions & 28 deletions
This file was deleted.

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ CREATE TABLE t1(a int PRIMARY KEY) ENGINE=InnoDB;
55
CREATE TABLE t2(b int PRIMARY KEY) ENGINE=InnoDB;
66
INSERT INTO t1 VALUES(1);
77
INSERT INTO t2 VALUES(2);
8+
# restart: --innodb-read-only
89
UPDATE t1,t2 SET t1.a = 2, t2.b = 2 WHERE t1.a = 1;
910
ERROR HY000: Table 't1' is read only
1011
# restart

mysql-test/suite/innodb/t/readonly.test

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ CREATE TABLE t2(b int PRIMARY KEY) ENGINE=InnoDB;
1212
INSERT INTO t1 VALUES(1);
1313
INSERT INTO t2 VALUES(2);
1414

15-
# Restart the server in readonly mode
16-
--source include/restart_readonly_mysqld.inc
15+
let $restart_parameters = restart: --innodb-read-only;
16+
--source include/restart_mysqld.inc
1717

1818
--error ER_OPEN_AS_READONLY
1919
UPDATE t1,t2 SET t1.a = 2, t2.b = 2 WHERE t1.a = 1;

0 commit comments

Comments
 (0)