~ubuntu-branches/ubuntu/trusty/mysql-5.6/trusty

« back to all changes in this revision

Viewing changes to mysql-test/suite/rpl/t/rpl_master_pos_wait.test

  • Committer: Package Import Robot
  • Author(s): James Page
  • Date: 2014-02-12 11:54:27 UTC
  • Revision ID: package-import@ubuntu.com-20140212115427-oq6tfsqxl1wuwehi
Tags: upstream-5.6.15
ImportĀ upstreamĀ versionĀ 5.6.15

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#
 
2
# Check what happens when there is an error with parameters provided
 
3
# to MASTER_POS_WAIT and when it timeouts.
 
4
#
 
5
source include/master-slave.inc;
 
6
sync_slave_with_master;
 
7
 
 
8
#
 
9
# MASTER_POS_WAIT: Check if time-out is correctly handled.
 
10
#
 
11
select master_pos_wait('master-bin.999999',0,2);
 
12
explain extended select master_pos_wait('master-bin.999999',0,2);
 
13
 
 
14
#
 
15
# MASTER_POS_WAIT (BUG#651): Check if it hangs when slave is 
 
16
# idle and STOP SLAVE is issued.
 
17
#
 
18
send select master_pos_wait('master-bin.999999',0);
 
19
connection slave1;
 
20
stop slave sql_thread;
 
21
connection slave;
 
22
reap;
 
23
 
 
24
#
 
25
#  MASTER_POS_WAIT (BUG#26622): it does not work as documented
 
26
#
 
27
connection master;
 
28
echo "*** must be empty ***";
 
29
query_vertical show slave status;
 
30
 
 
31
echo "*** must be NULL ***";
 
32
select master_pos_wait('foo', 98);
 
33
 
 
34
# End of 4.1 tests
 
35
--let $rpl_only_running_threads= 1
 
36
--source include/rpl_end.inc