mirror of
https://github.com/MariaDB/server.git
synced 2025-01-18 13:02:28 +01:00
31 lines
729 B
Text
31 lines
729 B
Text
--source include/galera_cluster.inc
|
|
--source include/have_innodb.inc
|
|
|
|
#
|
|
# Test that SR does not assert in the presence of statement-based replication events
|
|
#
|
|
|
|
--connection node_1
|
|
CREATE TABLE t1 (id INT) ENGINE=InnoDB;
|
|
SET SESSION wsrep_trx_fragment_size = 1;
|
|
SET SESSION BINLOG_FORMAT='STATEMENT';
|
|
SET AUTOCOMMIT=OFF;
|
|
START TRANSACTION;
|
|
INSERT INTO t1 VALUES (1);
|
|
INSERT INTO t1 VALUES (2);
|
|
INSERT INTO t1 VALUES (3);
|
|
INSERT INTO t1 VALUES (4);
|
|
INSERT INTO t1 VALUES (5);
|
|
|
|
--connection node_2
|
|
SET TRANSACTION ISOLATION LEVEL READ UNCOMMITTED;
|
|
--let $wait_condition = SELECT COUNT(*) > 0 FROM t1;
|
|
--source include/wait_condition.inc
|
|
|
|
--connection node_1
|
|
COMMIT;
|
|
|
|
--connection node_2
|
|
SELECT COUNT(*) = 5 FROM t1;
|
|
|
|
DROP TABLE t1;
|