1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-27 18:02:13 +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:
Oleksandr Byelkin
2018-07-24 18:16:41 +02:00
parent 5e67567b15
commit e0139c2b92

View File

@ -8,7 +8,8 @@ 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);
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;