1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-07 00:04:31 +03:00
Files
mariadb/mysql-test/suite/galera_sr/t/GCF-851.test

24 lines
573 B
Plaintext

--source include/galera_cluster.inc
CREATE TABLE t1 (f1 INTEGER PRIMARY KEY) ENGINE=InnoDB;
SET SESSION WSREP_TRX_FRAGMENT_SIZE=1;
SET SESSION AUTOCOMMIT=OFF;
INSERT INTO t1 VALUES (10);
SELECT COUNT(*) > 0 FROM mysql.wsrep_streaming_log;
--connection node_2
SELECT COUNT(*) > 0 FROM mysql.wsrep_streaming_log;
--connection node_1
START TRANSACTION;
SELECT COUNT(*) = 0 FROM mysql.wsrep_streaming_log;
--connection node_2
SELECT COUNT(*) = 0 FROM mysql.wsrep_streaming_log;
SELECT COUNT(*) > 0 FROM t1;
--connection node_1
SELECT COUNT(*) > 0 FROM t1;
DROP TABLE t1;