2014-09-12 08:41:35 +02:00
|
|
|
#
|
|
|
|
# MDEV-6619 SHOW PROCESSLIST returns empty result set after KILL QUERY
|
|
|
|
#
|
|
|
|
--source include/not_embedded.inc
|
2015-01-19 14:07:41 +01:00
|
|
|
--source include/have_debug_sync.inc
|
|
|
|
|
2014-09-12 08:41:35 +02:00
|
|
|
--enable_connect_log
|
|
|
|
--connect (con1,localhost,root,,)
|
|
|
|
--let $con_id = `SELECT CONNECTION_ID()`
|
|
|
|
--replace_column 1 # 3 # 6 # 7 #
|
|
|
|
SHOW PROCESSLIST;
|
2015-01-19 14:07:41 +01:00
|
|
|
SET DEBUG_SYNC='before_execute_sql_command WAIT_FOR go';
|
|
|
|
send SHOW PROCESSLIST;
|
2014-09-12 08:41:35 +02:00
|
|
|
--connection default
|
|
|
|
--replace_result $con_id con_id
|
|
|
|
eval KILL QUERY $con_id;
|
2015-01-19 14:07:41 +01:00
|
|
|
SET DEBUG_SYNC='now SIGNAL go';
|
2014-09-12 08:41:35 +02:00
|
|
|
--connection con1
|
|
|
|
--error ER_QUERY_INTERRUPTED
|
2015-01-19 14:07:41 +01:00
|
|
|
reap;
|
2014-09-12 08:41:35 +02:00
|
|
|
--replace_column 1 # 3 # 6 # 7 #
|
|
|
|
SHOW PROCESSLIST;
|