Commit 5a9c63ab authored by Jan Lindström's avatar Jan Lindström

MDEV-10949: innodb_disallow_writes does not work as expected

Test seems to pass fine.
parent 867d8680
...@@ -54,7 +54,6 @@ galera_pc_ignore_sb : MDEV-13549 Galera test failures 10.1 ...@@ -54,7 +54,6 @@ galera_pc_ignore_sb : MDEV-13549 Galera test failures 10.1
galera_lock_table : MDEV-13549 Galera test failures 10.1 galera_lock_table : MDEV-13549 Galera test failures 10.1
MW-284 : MDEV-13549 Galera test failures 10.1 MW-284 : MDEV-13549 Galera test failures 10.1
galera_as_slave : MDEV-13549 Galera test failures 10.1 galera_as_slave : MDEV-13549 Galera test failures 10.1
galera_var_innodb_disallow_writes : MDEV-10949
galera_kill_applier : race condition at the start of the test galera_kill_applier : race condition at the start of the test
MW-328C: MDEV-13549 Galera test failures 10.1 MW-328C: MDEV-13549 Galera test failures 10.1
MW-328A: MDEV-13549 Galera test failures 10.1 MW-328A: MDEV-13549 Galera test failures 10.1
......
...@@ -5,6 +5,12 @@ CREATE TABLE t1 (f1 INTEGER) Engine=InnoDB; ...@@ -5,6 +5,12 @@ CREATE TABLE t1 (f1 INTEGER) Engine=InnoDB;
SET GLOBAL innodb_disallow_writes=ON; SET GLOBAL innodb_disallow_writes=ON;
INSERT INTO t1 VALUES (1);; INSERT INTO t1 VALUES (1);;
connection node_1a; connection node_1a;
SELECT COUNT(*) = 1 FROM t1;
COUNT(*) = 1
0
SELECT COUNT(*) = 1 FROM t1;
COUNT(*) = 1
0
SET GLOBAL innodb_disallow_writes=OFF; SET GLOBAL innodb_disallow_writes=OFF;
connection node_1; connection node_1;
SELECT COUNT(*) = 1 FROM t1; SELECT COUNT(*) = 1 FROM t1;
......
...@@ -18,8 +18,10 @@ SET GLOBAL innodb_disallow_writes=ON; ...@@ -18,8 +18,10 @@ SET GLOBAL innodb_disallow_writes=ON;
--send INSERT INTO t1 VALUES (1); --send INSERT INTO t1 VALUES (1);
--connection node_1a --connection node_1a
SELECT COUNT(*) = 1 FROM t1;
let $wait_condition = SELECT 1 FROM INFORMATION_SCHEMA.PROCESSLIST WHERE INFO = 'INSERT INTO t1 VALUES (1)' AND State = 'query end'; let $wait_condition = SELECT 1 FROM INFORMATION_SCHEMA.PROCESSLIST WHERE INFO = 'INSERT INTO t1 VALUES (1)' AND State = 'query end';
--source include/wait_condition.inc --source include/wait_condition.inc
SELECT COUNT(*) = 1 FROM t1;
SET GLOBAL innodb_disallow_writes=OFF; SET GLOBAL innodb_disallow_writes=OFF;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment