3 # Stop the server given by $rpl_server_number.
7 # --let $rpl_server_number= N
8 # [--let $rpl_debug= 1]
9 # --source include/rpl_stop_server.inc
14 # Number to identify the server that needs to reconnect. 1 is the
15 # master server, 2 the slave server, 3 the 3rd server, and so on.
16 # Cf. include/rpl_init.inc
19 # See include/rpl_init.inc
23 # rpl_start_server.inc
24 # rpl_restart_server.inc
27 # Can't use begin_include_file / end_include_file because they require
28 # executing on a server and the server will go down after this script.
29 if (!$_include_file_depth)
31 --echo include/rpl_stop_server.inc [server_number=$rpl_server_number]
33 --inc $_include_file_depth
34 --let $_rpl_stop_server_old_connection= $CURRENT_CONNECTION
37 --echo $_include_file_indent con=
'$CURRENT_CONNECTION' warn=
'$ENABLED_WARNINGS' qlog=
'$ENABLED_QUERY_LOG' rlog=
'$ENABLED_RESULT_LOG' aborterr=
'$ENABLED_ABORT_ON_ERROR'
38 --echo $_include_file_indent==== BEGIN include/rpl_stop_server.inc ====
42 --let $rpl_connection_name= server_$rpl_server_number
43 --source include/rpl_connection.inc
45 # Write file to make mysql-test-run.pl expect the "crash", but don't start
46 # it until it's told to
47 --exec echo
"wait" > $MYSQLTEST_VARDIR/tmp/mysqld.$rpl_server_number.expect
49 # Send shutdown to the connected server and give
50 # it 14 seconds to die before zapping it
53 --source include/wait_until_disconnected.inc
56 --let $rpl_connection_name= $_rpl_stop_server_old_connection
57 --source include/rpl_connection.inc
58 --dec $_include_file_depth
61 --echo $_include_file_indent==== END include/rpl_stop_server.inc [server_number=$rpl_server_number] ====
62 --echo $_include_file_indent con=
'$CURRENT_CONNECTION' warn=
'$ENABLED_WARNINGS' qlog=
'$ENABLED_QUERY_LOG' rlog=
'$ENABLED_RESULT_LOG' aborterr=
'$ENABLED_ABORT_ON_ERROR'