~ubuntu-branches/ubuntu/maverick/mysql-5.1/maverick-proposed

« back to all changes in this revision

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

  • Committer: Package Import Robot
  • Author(s): Marc Deslauriers
  • Date: 2012-02-22 14:16:05 UTC
  • mto: This revision was merged to the branch mainline in revision 20.
  • Revision ID: package-import@ubuntu.com-20120222141605-nxlu9yzc6attylc2
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
# Issues STOP SLAVE IO_THREAD on the current connection. Then waits
 
4
# until the IO thread has stopped, or until a timeout is reached.
 
5
#
 
6
# This will fail if the slave IO thread has an error. If you expect an
 
7
# error in the IO thread, use include/wait_for_slave_io_error.inc
 
8
# instead.
 
9
#
 
10
# Please use this instead of 'STOP SLAVE IO_THREAD', to reduce the
 
11
# risk of races in test cases.
 
12
#
 
13
#
 
14
# ==== Usage ====
 
15
#
 
16
# [--let $slave_timeout= NUMBER]
 
17
# [--let $rpl_debug= 1]
 
18
# --source include/stop_slave_io.inc
 
19
#
 
20
# Parameters:
 
21
#   $slave_timeout
 
22
#     See include/wait_for_slave_param.inc
 
23
#
 
24
#   $rpl_debug
 
25
#     See include/rpl_init.inc
 
26
 
 
27
 
 
28
--let $include_filename= stop_slave_io.inc
 
29
--source include/begin_include_file.inc
 
30
 
 
31
 
 
32
if (!$rpl_debug)
 
33
{
 
34
  --disable_query_log
 
35
}
 
36
 
 
37
 
 
38
STOP SLAVE IO_THREAD;
 
39
--source include/wait_for_slave_io_to_stop.inc
 
40
 
 
41
 
 
42
--let $include_filename= stop_slave_io.inc
 
43
--source include/end_include_file.inc