3 # Stop all dump threads on the server of the current connection.
7 # --source include/stop_dump_threads.inc
9 --let $include_filename= stop_dump_threads.inc
10 --source include/begin_include_file.inc
13 --let $_sdt_show_rpl_debug_info_old= $show_rpl_debug_info
14 --let $show_rpl_debug_info= 1
18 --let $_sdt_dump_thread_id= `SELECT ID FROM INFORMATION_SCHEMA.PROCESSLIST WHERE COMMAND =
'Binlog dump'`
20 while ($_sdt_dump_thread_id !=
'')
22 eval KILL $_sdt_dump_thread_id;
23 --let $wait_condition= SELECT COUNT(*) = 0 FROM INFORMATION_SCHEMA.PROCESSLIST WHERE ID = $_sdt_dump_thread_id
24 --source include/wait_condition.inc
26 --let $_sdt_dump_thread_id= `SELECT ID FROM INFORMATION_SCHEMA.PROCESSLIST WHERE COMMAND =
'Binlog dump'`
30 --let $show_rpl_debug_info= $_sdt_show_rpl_debug_info_old
32 --let $include_filename= stop_dump_threads.inc
33 --source include/end_include_file.inc