mirror of
https://github.com/MariaDB/server.git
synced 2026-05-16 20:07:13 +02:00
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:
parent
88f2ec6f20
commit
7c525ce36b
7 changed files with 137 additions and 26 deletions
24
mysql-test/suite/galera/r/enforce_storage_engine2.result
Normal file
24
mysql-test/suite/galera/r/enforce_storage_engine2.result
Normal 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
|
||||
2
mysql-test/suite/galera/t/enforce_storage_engine2.opt
Normal file
2
mysql-test/suite/galera/t/enforce_storage_engine2.opt
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
--enforce_storage_engine=innodb --sql_mode=''
|
||||
|
||||
20
mysql-test/suite/galera/t/enforce_storage_engine2.test
Normal file
20
mysql-test/suite/galera/t/enforce_storage_engine2.test
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue