summaryrefslogtreecommitdiff
path: root/mysql-test/suite/galera/r/galera_gcs_fc_limit.result
blob: bf1a82f9f90e23b20bf924273b252e67b6107a7a (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
25
26
CREATE TABLE t1 (f1 INTEGER NOT NULL PRIMARY KEY AUTO_INCREMENT,B INTEGER) ENGINE=InnoDB;
INSERT INTO t1 VALUES (1,1);
connection node_2;
SET SESSION wsrep_sync_wait=15;
SELECT COUNT(*) FROM t1;
COUNT(*)
1
SET GLOBAL wsrep_provider_options = 'gcs.fc_limit=1';
LOCK TABLE t1 WRITE;
connection node_1;
FLUSH STATUS;
INSERT INTO t1 VALUES (2,2);
INSERT INTO t1 VALUES (3,3);
INSERT INTO t1 VALUES (4,4);
INSERT INTO t1(B) SELECT B FROM t1;
connection node_1a;
# In node_1 either insert or commit should be stuck
connection node_2;
UNLOCK TABLES;
connection node_1;
INSERT INTO t1 VALUES (NULL,6);
connection node_2;
SELECT COUNT(*) FROM t1;
COUNT(*)
9
DROP TABLE t1;