2
# Check what happens when there is an error with parameters provided
3
# to MASTER_POS_WAIT and when it timeouts.
5
source include/master-slave.inc;
6
sync_slave_with_master;
9
# MASTER_POS_WAIT: Check if time-out is correctly handled.
11
select master_pos_wait('master-bin.999999',0,2);
12
explain extended select master_pos_wait('master-bin.999999',0,2);
15
# MASTER_POS_WAIT (BUG#651): Check if it hangs when slave is
16
# idle and STOP SLAVE is issued.
18
send select master_pos_wait('master-bin.999999',0);
20
stop slave sql_thread;
25
# MASTER_POS_WAIT (BUG#26622): it does not work as documented
28
echo "*** must be empty ***";
29
query_vertical show slave status;
31
echo "*** must be NULL ***";
32
select master_pos_wait('foo', 98);
35
--let $rpl_only_running_threads= 1
36
--source include/rpl_end.inc