mirror of
https://github.com/MariaDB/server.git
synced 2025-01-19 05:22:25 +01:00
28 lines
702 B
Text
28 lines
702 B
Text
CREATE TABLE t1 (id INT) ENGINE=InnoDB;
|
|
CREATE TABLE t2 (id INT) ENGINE=InnoDB;
|
|
SET GLOBAL wsrep_slave_threads = 2;
|
|
LOCK TABLE t1 WRITE;
|
|
INSERT INTO t1 VALUES (1);
|
|
INSERT INTO t2 VALUES (1);
|
|
INSERT INTO t1 VALUES (1);
|
|
INSERT INTO t2 VALUES (1);
|
|
INSERT INTO t1 VALUES (1);
|
|
INSERT INTO t2 VALUES (1);
|
|
INSERT INTO t1 VALUES (1);
|
|
INSERT INTO t2 VALUES (1);
|
|
INSERT INTO t1 VALUES (1);
|
|
INSERT INTO t2 VALUES (1);
|
|
INSERT INTO t1 VALUES (1);
|
|
INSERT INTO t2 VALUES (1);
|
|
SET SESSION wsrep_sync_wait = 0;
|
|
UNLOCK TABLES;
|
|
SET SESSION wsrep_sync_wait = 15;
|
|
SELECT COUNT(*) = 10 FROM t1;
|
|
COUNT(*) = 10
|
|
0
|
|
SELECT COUNT(*) = 10 FROM t2;
|
|
COUNT(*) = 10
|
|
0
|
|
SET GLOBAL wsrep_slave_threads = 1;;
|
|
DROP TABLE t1;
|
|
DROP TABLE t2;
|