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

« back to all changes in this revision

Viewing changes to mysql-test/include/sync_io_with_master.inc

  • 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
# ==== Purpose ====
 
2
#
 
3
# Waits until the slave IO thread on the current connection has been
 
4
# synced up to the point saved by the last call to
 
5
# include/save_master_pos.inc (i.e., until the IO thead has copied up
 
6
# to the saved position).  Does not wait for the SQL thread.
 
7
#
 
8
#
 
9
# ==== Usage ====
 
10
#
 
11
# On master:
 
12
# --source include/save_master_pos.inc
 
13
#
 
14
# On slave:
 
15
# [--let $slave_timeout= NUMBER]
 
16
# [--let $rpl_debug= 1]
 
17
# --source include/sync_slave_io_with_master.inc
 
18
#
 
19
# Parameters:
 
20
#   $slave_timeout
 
21
#     See include/wait_for_slave_param.inc
 
22
#
 
23
#   $rpl_debug
 
24
#     See include/rpl_init.inc
 
25
 
 
26
 
 
27
--let $include_filename= sync_io_with_master.inc
 
28
--source include/begin_include_file.inc
 
29
 
 
30
 
 
31
--let $_old_slave_error_param= $slave_error_param
 
32
--let $slave_error_param= Last_IO_Errno
 
33
 
 
34
--let $slave_param= Master_Log_File
 
35
--let $slave_param_value= $_master_file
 
36
source include/wait_for_slave_param.inc;
 
37
 
 
38
let $slave_param= Read_Master_Log_Pos;
 
39
let $slave_param_value= $_master_pos;
 
40
source include/wait_for_slave_param.inc;
 
41
 
 
42
--let $slave_error_param= $_old_slave_error_param
 
43
 
 
44
 
 
45
--let $include_filename= sync_io_with_master.inc
 
46
--source include/end_include_file.inc