MySQL 5.6.14 Source Code Document
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
wait_for_slave_to_stop.inc
1 # ==== Purpose ====
2 #
3 # Waits until both the IO and SQL threads of the current connection
4 # have stopped gracefully.
5 #
6 # Note: this script will fail if one of the threads stops with an
7 # error. If you expect an error in one of the threads, use
8 # include/wait_for_slave_io_error.inc or
9 # include/wait_for_slave_sql_error.inc instead.
10 #
11 # This script also fails if a timeout is reached (default 300
12 # seconds).
13 #
14 #
15 # ==== Usage ====
16 #
17 # [--let $slave_timeout= NUMBER]
18 # [--let $rpl_debug= 1]
19 # --source include/wait_for_slave_to_stop.inc
20 #
21 # Parameters:
22 # $slave_timeout
23 # See include/wait_for_slave_param.inc
24 #
25 # $rpl_debug
26 # See include/rpl_init.inc
27 
28 
29 --let $include_filename= wait_for_slave_to_stop.inc
30 --source include/begin_include_file.inc
31 
32 
33 --source include/wait_for_slave_sql_to_stop.inc
34 --source include/wait_for_slave_io_to_stop.inc
35 
36 
37 --let $include_filename= wait_for_slave_to_stop.inc
38 --source include/end_include_file.inc