mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
MDEV-15359 Thread stay in "cleaning up" status after finishing
make thd_get_error_context_description() to show not just thd->proc_info, but exactly the same thread state that SHOW PROCESSLIST shows.
This commit is contained in:
18
mysql-test/suite/plugins/t/processlist.test
Normal file
18
mysql-test/suite/plugins/t/processlist.test
Normal file
@ -0,0 +1,18 @@
|
||||
#
|
||||
# MDEV-15359 Thread stay in "cleaning up" status after finishing
|
||||
#
|
||||
source include/have_innodb.inc;
|
||||
|
||||
create table t1 (a int) engine=innodb;
|
||||
start transaction;
|
||||
insert t1 values (1);
|
||||
let id=`select connection_id()`;
|
||||
connect con2,localhost,root;
|
||||
let s=query_get_value(show engine innodb status,Status,1);
|
||||
disable_query_log;
|
||||
eval select regexp_replace("$s", '(?s)^.*MySQL thread id $id,.*root([^\n]*)\n.*', '\\\\1') as `state from show engine innodb status`;
|
||||
eval select state as `state from show processlist` from information_schema.processlist where id = $id;
|
||||
enable_query_log;
|
||||
disconnect con2;
|
||||
connection default;
|
||||
drop table t1;
|
Reference in New Issue
Block a user