1
by brian
clean slate |
1 |
# See if master_pos_wait(,,timeout) |
2 |
# Terminates with "timeout expired" (-1) |
|
3 |
source include/master-slave.inc; |
|
4 |
save_master_pos; |
|
5 |
connection slave; |
|
6 |
sync_with_master; |
|
7 |
# Ask for a master log that has certainly not been reached yet |
|
8 |
# timeout= 2 seconds |
|
9 |
select master_pos_wait('master-bin.999999',0,2); |
|
10 |
explain extended select master_pos_wait('master-bin.999999',0,2); |
|
11 |
# Testcase for bug 651 (master_pos_wait() hangs if slave idle and STOP SLAVE). |
|
12 |
send select master_pos_wait('master-bin.999999',0); |
|
13 |
connection slave1; |
|
14 |
stop slave sql_thread; |
|
15 |
connection slave; |
|
16 |
reap; |
|
17 |
||
18 |
#
|
|
19 |
# bug#26622 MASTER_POS_WAIT does not work as documented |
|
20 |
#
|
|
21 |
||
22 |
connection master; |
|
23 |
echo "*** must be empty ***"; |
|
24 |
query_vertical show slave status; |
|
25 |
||
26 |
echo "*** must be NULL ***"; |
|
27 |
select master_pos_wait('foo', 98); |
|
28 |
||
29 |
# End of 4.1 tests |