mirror of
https://github.com/MariaDB/server.git
synced 2025-01-29 10:14:19 +01:00
make plugins.processlist more robust
This commit is contained in:
parent
e0139c2b92
commit
9fbe360e9f
2 changed files with 4 additions and 5 deletions
|
@ -1,8 +1,6 @@
|
|||
create table t1 (a int) engine=innodb;
|
||||
start transaction;
|
||||
insert t1 values (1);
|
||||
state from show engine innodb status
|
||||
state from show engine innodb status, must be empty
|
||||
|
||||
state from show processlist
|
||||
|
||||
drop table t1;
|
||||
|
|
|
@ -8,11 +8,12 @@ start transaction;
|
|||
insert t1 values (1);
|
||||
let id=`select connection_id()`;
|
||||
connect con2,localhost,root;
|
||||
let $wait_condition=select state='' from information_schema.processlist where id = $id;
|
||||
--source include/wait_condition.inc
|
||||
replace_regex /\"/-/; #"
|
||||
let s=`show engine innodb status`;
|
||||
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;
|
||||
eval select regexp_replace("$s", '(?s)^.*MySQL thread id $id,.*root([^\n]*)\n.*', '\\\\1') as `state from show engine innodb status, must be empty`;
|
||||
enable_query_log;
|
||||
disconnect con2;
|
||||
connection default;
|
||||
|
|
Loading…
Add table
Reference in a new issue