mirror of
https://github.com/MariaDB/server.git
synced 2025-01-30 02:30:06 +01:00
c768ac6208
Problem was that if wsrep_load_data_splitting was used streaming replication (SR) parameters were set for MyISAM table. Galera does not currently support SR for MyISAM. Fix is to ignore wsrep_load_data_splitting setting (with warning) if table is not InnoDB table. This is 10.4-10.5 case of fix. Signed-off-by: Julius Goryavsky <julius.goryavsky@mariadb.com>
34 lines
1 KiB
Text
34 lines
1 KiB
Text
connection node_2;
|
|
connection node_1;
|
|
connection node_1;
|
|
SET GLOBAL wsrep_load_data_splitting=ON;
|
|
Warnings:
|
|
Warning 1287 '@@wsrep_load_data_splitting' is deprecated and will be removed in a future release
|
|
SET GLOBAL wsrep_replicate_myisam=ON;
|
|
CREATE TABLE t1 (c1 int) ENGINE=MYISAM;
|
|
LOAD DATA INFILE '../../std_data/mdev-25731.dat' IGNORE INTO TABLE t1 LINES TERMINATED BY '\n';
|
|
Warnings:
|
|
Warning 1235 wsrep_load_data_splitting for other than InnoDB tables
|
|
SELECT COUNT(*) AS EXPECT_6 FROM t1;
|
|
EXPECT_6
|
|
6
|
|
connection node_2;
|
|
SELECT COUNT(*) AS EXPECT_6 FROM t1;
|
|
EXPECT_6
|
|
6
|
|
connection node_1;
|
|
ALTER TABLE t1 ENGINE=InnoDB;
|
|
LOAD DATA INFILE '../../std_data/mdev-25731.dat' IGNORE INTO TABLE t1 LINES TERMINATED BY '\n';
|
|
SELECT COUNT(*) AS EXPECT_12 FROM t1;
|
|
EXPECT_12
|
|
12
|
|
connection node_2;
|
|
SELECT COUNT(*) AS EXPECT_12 FROM t1;
|
|
EXPECT_12
|
|
12
|
|
connection node_1;
|
|
DROP TABLE t1;
|
|
SET GLOBAL wsrep_load_data_splitting=OFF;
|
|
Warnings:
|
|
Warning 1287 '@@wsrep_load_data_splitting' is deprecated and will be removed in a future release
|
|
SET GLOBAL wsrep_replicate_myisam=OFF;
|