~vkolesnikov/pbxt/pbxt-bug-688404

« back to all changes in this revision

Viewing changes to pbxt/mysql-test-update/mysql-test/t/rpl_master_pos_wait.test

  • Committer: paul-mccullagh
  • Date: 2006-10-23 09:14:04 UTC
  • Revision ID: paul-mccullagh-918861e03d351978a9541168a96e58cc826734ee
Initial import

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