Commit 0d745343 authored by Sergei Golubchik's avatar Sergei Golubchik

fix plugins.processlist

make it not to fail when `show engine innodb status` output
contains a double quote
parent ef64856b
...@@ -8,7 +8,8 @@ start transaction; ...@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment