3
3
#
4
4
5
5
--source include/galera_cluster.inc
6
- --source include/have_innodb.inc
7
6
8
7
9
8
#
@@ -73,11 +72,15 @@ SET GLOBAL wsrep_on = ON;
73
72
DELETE FROM t1 WHERE f1 = 1;
74
73
75
74
--connection node_1
75
+ --let $wait_condition = SELECT COUNT(*) = 0 FROM t1;
76
+ --source include/wait_condition.inc
76
77
SELECT COUNT(*) as expect_0 FROM t1;
77
78
--connection node_2
78
79
--source include/galera_wait_ready.inc
79
80
--let $wait_condition = SELECT VARIABLE_VALUE = 2 FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE VARIABLE_NAME = 'wsrep_cluster_size';
80
81
--source include/wait_condition.inc
82
+ --let $wait_condition = SELECT COUNT(*) = 0 FROM t1;
83
+ --source include/wait_condition.inc
81
84
SELECT COUNT(*) as expect_0 FROM t1;
82
85
83
86
DROP TABLE t1;
@@ -97,11 +100,15 @@ DELETE FROM t1 WHERE f1 = 2;
97
100
COMMIT;
98
101
99
102
--connection node_1
103
+ --let $wait_condition = SELECT COUNT(*) = 1 FROM t1;
104
+ --source include/wait_condition.inc
100
105
SELECT COUNT(*) as expect_1 FROM t1;
101
106
--connection node_2
102
107
--source include/galera_wait_ready.inc
103
108
--let $wait_condition = SELECT VARIABLE_VALUE = 2 FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE VARIABLE_NAME = 'wsrep_cluster_size';
104
109
--source include/wait_condition.inc
110
+ --let $wait_condition = SELECT COUNT(*) = 1 FROM t1;
111
+ --source include/wait_condition.inc
105
112
SELECT COUNT(*) as expect_1 FROM t1;
106
113
107
114
DROP TABLE t1;
@@ -132,6 +139,8 @@ SELECT COUNT(*) as expect_0 FROM t1;
132
139
--let $wait_condition = SELECT VARIABLE_VALUE = 'Primary' FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE VARIABLE_NAME = 'wsrep_cluster_status';
133
140
--source include/wait_condition.inc
134
141
SELECT VARIABLE_VALUE = 'Primary' FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE VARIABLE_NAME = 'wsrep_cluster_status';
142
+ --let $wait_condition = SELECT COUNT(*) = 0 FROM t1;
143
+ --source include/wait_condition.inc
135
144
SELECT COUNT(*) as expect_0 FROM t1;
136
145
DROP TABLE t1;
137
146
@@ -171,6 +180,8 @@ SELECT COUNT(*) as expect_0 FROM t1;
171
180
--let $wait_condition = SELECT VARIABLE_VALUE = 'Primary' FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE VARIABLE_NAME = 'wsrep_cluster_status';
172
181
--source include/wait_condition.inc
173
182
SELECT VARIABLE_VALUE = 'Primary' FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE VARIABLE_NAME = 'wsrep_cluster_status';
183
+ --let $wait_condition = SELECT COUNT(*) = 0 FROM t1;
184
+ --source include/wait_condition.inc
174
185
SELECT COUNT(*) as expect_0 FROM t1;
175
186
DROP TABLE t1;
176
187
@@ -205,6 +216,8 @@ SELECT COUNT(*) as expect_0 FROM t1;
205
216
--let $wait_condition = SELECT VARIABLE_VALUE = 'Primary' FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE VARIABLE_NAME = 'wsrep_cluster_status';
206
217
--source include/wait_condition.inc
207
218
SELECT VARIABLE_VALUE = 'Primary' FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE VARIABLE_NAME = 'wsrep_cluster_status';
219
+ --let $wait_condition = SELECT COUNT(*) = 0 FROM t1;
220
+ --source include/wait_condition.inc
208
221
SELECT COUNT(*) as expect_0 FROM t1;
209
222
DROP TABLE t1,t2;
210
223
@@ -239,6 +252,10 @@ SELECT COUNT(*) as expect_0 FROM child;
239
252
--let $wait_condition = SELECT VARIABLE_VALUE = 'Primary' FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE VARIABLE_NAME = 'wsrep_cluster_status';
240
253
--source include/wait_condition.inc
241
254
SELECT VARIABLE_VALUE = 'Primary' FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE VARIABLE_NAME = 'wsrep_cluster_status';
255
+ --let $wait_condition = SELECT COUNT(*) = 0 FROM parent;
256
+ --source include/wait_condition.inc
257
+ --let $wait_condition = SELECT COUNT(*) = 0 FROM child;
258
+ --source include/wait_condition.inc
242
259
SELECT COUNT(*) as expect_0 FROM parent;
243
260
SELECT COUNT(*) as expect_0 FROM child;
244
261
DROP TABLE child, parent;
0 commit comments