MDEV-9312: storage engine not enforced during galera cluster replication

Perform a post initialization of plugin-related variables
of wsrep threads after their global counterparts have been
initialized.
This commit is contained in:
Nirbhay Choubey 2016-09-28 13:26:13 -04:00
commit 7c525ce36b
7 changed files with 137 additions and 26 deletions

View file

@ -0,0 +1,24 @@
#
# MDEV-9312: storage engine not enforced during galera cluster
# replication
#
CREATE TABLE t1(i INT) ENGINE=INNODB;
CREATE TABLE t2(i INT) ENGINE=MYISAM;
Warnings:
Note 1266 Using storage engine InnoDB for table 't2'
SHOW TABLES;
Tables_in_test
t1
t2
SHOW CREATE TABLE t1;
Table Create Table
t1 CREATE TABLE `t1` (
`i` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1
SHOW CREATE TABLE t2;
Table Create Table
t2 CREATE TABLE `t2` (
`i` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1
DROP TABLE t1, t2;
# End of tests

View file

@ -0,0 +1,2 @@
--enforce_storage_engine=innodb --sql_mode=''

View file

@ -0,0 +1,20 @@
--source include/galera_cluster.inc
--source include/have_innodb.inc
--echo #
--echo # MDEV-9312: storage engine not enforced during galera cluster
--echo # replication
--echo #
--connection node_1
CREATE TABLE t1(i INT) ENGINE=INNODB;
CREATE TABLE t2(i INT) ENGINE=MYISAM;
--connection node_2
SHOW TABLES;
SHOW CREATE TABLE t1;
SHOW CREATE TABLE t2;
# Cleanup
DROP TABLE t1, t2;
--echo # End of tests