mirror of
https://github.com/MariaDB/server.git
synced 2025-08-01 03:47:19 +03:00
MDEV-4506: Parallel replication: Intermediate commit.
A few fixes following tests. Now can apply one INSERT event in a separate worker thread.
This commit is contained in:
44
mysql-test/suite/rpl/t/rpl_parallel.test
Normal file
44
mysql-test/suite/rpl/t/rpl_parallel.test
Normal file
@ -0,0 +1,44 @@
|
||||
--source include/have_binlog_format_statement.inc
|
||||
|
||||
connect (s1,127.0.0.1,root,,test,$MASTER_MYPORT,);
|
||||
connect (s2,127.0.0.1,root,,test,$SLAVE_MYPORT,);
|
||||
|
||||
--connection s1
|
||||
SELECT @@server_id;
|
||||
SET sql_log_bin=0;
|
||||
CREATE TABLE t1 (a INT PRIMARY KEY) ENGINE=MyISAM;
|
||||
SET sql_log_bin=1;
|
||||
|
||||
--connection s2
|
||||
SELECT @@server_id;
|
||||
SET sql_log_bin=0;
|
||||
CREATE TABLE t1 (a INT PRIMARY KEY) ENGINE=MyISAM;
|
||||
SET sql_log_bin=1;
|
||||
|
||||
--replace_result $MASTER_MYPORT MASTER_PORT
|
||||
eval CHANGE MASTER TO master_host = '127.0.0.1', master_port = $MASTER_MYPORT,
|
||||
master_user='root', master_use_gtid=current_pos;
|
||||
|
||||
--connection s1
|
||||
INSERT INTO t1 VALUES (1);
|
||||
|
||||
--connection s2
|
||||
query_vertical SHOW SLAVE STATUS;
|
||||
|
||||
--source include/start_slave.inc
|
||||
SELECT * FROM t1;
|
||||
--sleep 1
|
||||
SELECT * FROM t1;
|
||||
|
||||
--source include/stop_slave.inc
|
||||
|
||||
--connection s1
|
||||
SET sql_log_bin=0;
|
||||
DROP TABLE t1;
|
||||
SET sql_log_bin=1;
|
||||
|
||||
--connection s2
|
||||
RESET SLAVE ALL;
|
||||
SET sql_log_bin=0;
|
||||
DROP TABLE t1;
|
||||
SET sql_log_bin=1;
|
Reference in New Issue
Block a user