File tree Expand file tree Collapse file tree 2 files changed +17
-2
lines changed Expand file tree Collapse file tree 2 files changed +17
-2
lines changed Original file line number Diff line number Diff line change @@ -144,7 +144,6 @@ SET debug_sync='RESET';
144
144
connection node_1;
145
145
SET GLOBAL wsrep_slave_threads = DEFAULT;
146
146
connection node_2;
147
- SET SESSION wsrep_sync_wait=15;
148
147
SELECT * FROM t1;
149
148
f1 f2 f3
150
149
1 1 0
Original file line number Diff line number Diff line change @@ -140,6 +140,14 @@ SELECT * FROM t1;
140
140
# original state in node 1
141
141
INSERT INTO t1 VALUES (7,7,7);
142
142
INSERT INTO t1 VALUES (8,8,8);
143
+ SELECT COUNT(*) FROM t1;
144
+ SELECT * FROM t1;
145
+
146
+ --connection node_1
147
+ --let $wait_condition = SELECT COUNT(*) = 7 FROM t1
148
+ --source include/wait_condition.inc
149
+ SELECT COUNT(*) FROM t1;
150
+ SELECT * FROM t1;
143
151
144
152
DROP TABLE t1;
145
153
@@ -268,12 +276,20 @@ SET debug_sync='RESET';
268
276
SET GLOBAL wsrep_slave_threads = DEFAULT;
269
277
270
278
--connection node_2
271
- SET SESSION wsrep_sync_wait=15;
272
279
SELECT * FROM t1;
273
280
274
281
# replicate some transactions, so that wsrep slave thread count can reach
275
282
# original state in node 1
276
283
INSERT INTO t1 VALUES (7,7,7);
277
284
INSERT INTO t1 VALUES (8,8,8);
278
285
286
+ SELECT COUNT(*) FROM t1;
287
+ SELECT * FROM t1;
288
+
289
+ --connection node_1
290
+ --let $wait_condition = SELECT COUNT(*) = 7 FROM t1
291
+ --source include/wait_condition.inc
292
+ SELECT COUNT(*) FROM t1;
293
+ SELECT * FROM t1;
294
+
279
295
DROP TABLE t1;
You can’t perform that action at this time.
0 commit comments