mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
fix plugins.processlist
make it not to fail when `show engine innodb status` output contains a double quote
This commit is contained in:
@ -8,7 +8,8 @@ start transaction;
|
|||||||
insert t1 values (1);
|
insert t1 values (1);
|
||||||
let id=`select connection_id()`;
|
let id=`select connection_id()`;
|
||||||
connect con2,localhost,root;
|
connect con2,localhost,root;
|
||||||
let s=query_get_value(show engine innodb status,Status,1);
|
replace_regex /\"/-/; #"
|
||||||
|
let s=`show engine innodb status`;
|
||||||
disable_query_log;
|
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 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 state as `state from show processlist` from information_schema.processlist where id = $id;
|
||||||
|
Reference in New Issue
Block a user