mirror of
https://github.com/MariaDB/server.git
synced 2025-02-09 23:24:11 +01:00
27d66d644c
Introduced two new wsrep_mode options * REPLICATE_MYISAM * REPLICATE_ARIA Depracated wsrep_replicate_myisam parameter and we use wsrep_mode = REPLICATE_MYISAM instead. This required small refactoring of wsrep_check_mode_after_open_table so that both MyISAM and Aria are handled on required DML cases. Similarly, added Aria to wsrep_should_replicate_ddl to handle DDL for Aria tables using TOI. Added test cases and improved MyISAM testing. Changed use of wsrep_replicate_myisam to wsrep_mode = REPLICATE_MYISAM
41 lines
897 B
Text
41 lines
897 B
Text
--source include/galera_cluster.inc
|
|
--source include/have_aria.inc
|
|
|
|
#
|
|
# Test ALTER ENGINE from MyISAM to InnoDB under REPLICATE_MYISAM
|
|
#
|
|
|
|
SET GLOBAL wsrep_mode = REPLICATE_MYISAM;
|
|
|
|
CREATE TABLE t1 (f1 INTEGER) ENGINE=MyISAM;
|
|
INSERT INTO t1 VALUES (1);
|
|
|
|
ALTER TABLE t1 ENGINE=InnoDB;
|
|
|
|
--connection node_2
|
|
SELECT ENGINE = 'InnoDB' FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_NAME = 't1';
|
|
SELECT COUNT(*) = 1 FROM t1;
|
|
DROP TABLE t1;
|
|
|
|
#
|
|
# Test ALTER ENGINE from Aria to InnoDB under REPLICATE_ARIA
|
|
#
|
|
|
|
--connection node_1
|
|
SET GLOBAL wsrep_mode = REPLICATE_ARIA;
|
|
|
|
CREATE TABLE t1 (f1 INTEGER) ENGINE=ARIA;
|
|
INSERT INTO t1 VALUES (1);
|
|
|
|
ALTER TABLE t1 ENGINE=InnoDB;
|
|
|
|
--connection node_2
|
|
SELECT ENGINE = 'InnoDB' FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_NAME = 't1';
|
|
SELECT COUNT(*) = 1 FROM t1;
|
|
DROP TABLE t1;
|
|
|
|
--connection node_1
|
|
--disable_query_log
|
|
SET GLOBAL wsrep_mode = DEFAULT;
|
|
--enable_query_log
|
|
|