Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
9fbe360e
Commit
9fbe360e
authored
Jul 24, 2018
by
Oleksandr Byelkin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
make plugins.processlist more robust
parent
e0139c2b
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
5 deletions
+4
-5
mysql-test/suite/plugins/r/processlist.result
mysql-test/suite/plugins/r/processlist.result
+1
-3
mysql-test/suite/plugins/t/processlist.test
mysql-test/suite/plugins/t/processlist.test
+3
-2
No files found.
mysql-test/suite/plugins/r/processlist.result
View file @
9fbe360e
create table t1 (a int) engine=innodb;
start transaction;
insert t1 values (1);
state from show engine innodb status
state from show processlist
state from show engine innodb status, must be empty
drop table t1;
mysql-test/suite/plugins/t/processlist.test
View file @
9fbe360e
...
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment