summaryrefslogtreecommitdiff
path: root/mysql-test/suite/galera_sr/t/GCF-851.test
blob: 28d5302a422a8679b289b90d7c7f5a9b04ddb136 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
--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;