summaryrefslogtreecommitdiff
path: root/mysql-test/suite/rpl/t/rpl_fail_register.test
blob: d95a5c5f1c3a91cacb030f7b2d38f57df96c0594 (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
27
28
29
30
31
32
33
source include/have_debug.inc;
source include/have_binlog_format_mixed.inc;
source include/master-slave.inc;

connection slave;

set @old_dbug=@@global.debug_dbug;
set global debug_dbug='d,fail_com_register_slave';

stop slave;
reset slave;
source include/wait_for_slave_to_stop.inc;
start slave;
stop slave;
source include/wait_for_slave_to_stop.inc;
set global debug_dbug=@old_dbug;

connection master;

let $id=`SELECT id from information_schema.processlist where command='Binlog Dump'`;

if ($id) {
  replace_result $id DUMP_THREAD;
  eval kill $id;
  let $wait_condition= SELECT count(*)=0 from information_schema.processlist where command='Killed';
  source include/wait_condition.inc;
}

show slave hosts;

connection slave;
start slave;
source include/rpl_end.inc;