@@ -31,8 +31,12 @@ echo [ enable semi-sync on slave ];
31
31
stop slave;
32
32
set global rpl_semi_sync_slave_enabled = 1;
33
33
start slave;
34
+ let $status_var= rpl_semi_sync_slave_status;
35
+ let $status_var_value= ON;
36
+ source include/wait_for_status_var.inc;
34
37
show status like 'rpl_semi_sync_slave%';
35
38
39
+
36
40
connection master;
37
41
CREATE TABLE t1(a INT) ENGINE=InnoDB;
38
42
sync_slave_with_master;
@@ -190,6 +194,12 @@ connection con1;
190
194
INSERT INTO t1 values (2);
191
195
sync_slave_with_master;
192
196
connection con1;
197
+ let $status_var= Rpl_semi_sync_master_clients;
198
+ let $status_var_value= 1;
199
+ source include/wait_for_status_var.inc;
200
+ let $status_var= Rpl_semi_sync_master_status;
201
+ let $status_var_value= ON;
202
+ source include/wait_for_status_var.inc;
193
203
show status like 'Rpl_semi_sync_master_clients';
194
204
show status like 'Rpl_semi_sync_master_status';
195
205
@@ -259,7 +269,12 @@ START SLAVE IO_THREAD;
259
269
--echo #########################################################
260
270
connection con1;
261
271
SET GLOBAL rpl_semi_sync_master_enabled = 0;
272
+
273
+ let $status_var= Rpl_semi_sync_master_clients;
274
+ let $status_var_value= 1;
275
+ source include/wait_for_status_var.inc;
262
276
show status like 'Rpl_semi_sync_master_clients';
277
+
263
278
INSERT INTO t1 VALUES (1);
264
279
SET GLOBAL rpl_semi_sync_master_enabled = 1;
265
280
INSERT INTO t1 VALUES (2);
0 commit comments