3
# Kill a query, sync master with slave, and diff the output of a
4
# statement on master and slave to check if statement is correctly
9
# connection <CONNECTION>;
10
# let $connection_name=<CONNECTION>
11
# let $connection_id=`SELECT CONNECTION_ID()`;
12
# let $diff_statement=<SQL COMMAND>;
14
# source include/kill_query_and_diff_master_slave.inc;
16
# Note: <CONNECTION> must not be 'master'.
18
# See also kill_query.inc and diff_master_slave.inc for more
21
source include/kill_query.inc;
23
# Release the debug lock if used, so that the statements in
24
# diff_master_slave.inc will not be blocked.
28
if (`SELECT '$debug_lock' != ''`)
30
eval SELECT RELEASE_LOCK($debug_lock);
35
source include/diff_master_slave.inc;
37
# Acquire the debug lock again if used
39
disable_query_log; disable_result_log; if (`SELECT '$debug_lock' !=
40
''`) { eval SELECT GET_LOCK($debug_lock, 10); } enable_result_log;
43
connection $connection_name;