Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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.
- Loading branch information
Showing
4 changed files
with
111 additions
and
97 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
create table t1 (a int) engine=innodb; | ||
start transaction; | ||
insert t1 values (1); | ||
state from show engine innodb status | ||
|
||
state from show processlist | ||
|
||
drop table t1; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters