~ubuntu-branches/ubuntu/lucid/mysql-dfsg-5.1/lucid-security

« back to all changes in this revision

Viewing changes to mysql-test/suite/engines/funcs/t/rpl_master_pos_wait.test

  • Committer: Package Import Robot
  • Author(s): Marc Deslauriers
  • Date: 2012-02-22 22:33:55 UTC
  • mto: (1.2.1) (37.1.1 lucid-security)
  • mto: This revision was merged to the branch mainline in revision 36.
  • Revision ID: package-import@ubuntu.com-20120222223355-ku1tb4r70osci6v2
Tags: upstream-5.1.61
ImportĀ upstreamĀ versionĀ 5.1.61

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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
# End of 4.1 tests