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
9c03c1c6
Commit
9c03c1c6
authored
Dec 01, 2020
by
Marko Mäkelä
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MDEV-24167 fixup: Improve perfschema.sxlock_func test
parent
98207ad5
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
25 deletions
+19
-25
mysql-test/suite/perfschema/r/sxlock_func.result
mysql-test/suite/perfschema/r/sxlock_func.result
+12
-11
mysql-test/suite/perfschema/t/sxlock_func.test
mysql-test/suite/perfschema/t/sxlock_func.test
+7
-14
No files found.
mysql-test/suite/perfschema/r/sxlock_func.result
View file @
9c03c1c6
UPDATE performance_schema.setup_instruments SET enabled = 'NO', timed = 'YES';
UPDATE performance_schema.setup_instruments SET enabled = 'YES'
WHERE name like 'wait/synch/sxlock/%';
SELECT DISTINCT name FROM performance_schema.setup_instruments
WHERE name LIKE 'wait/synch/rwlock/innodb%'
AND name!='wait/synch/rwlock/innodb/btr_search_latch' ORDER BY name;
name
wait/synch/rwlock/innodb/dict_operation_lock
wait/synch/rwlock/innodb/fil_space_latch
wait/synch/rwlock/innodb/trx_i_s_cache_lock
wait/synch/rwlock/innodb/trx_purge_latch
TRUNCATE TABLE performance_schema.events_waits_history_long;
TRUNCATE TABLE performance_schema.events_waits_history;
TRUNCATE TABLE performance_schema.events_waits_current;
...
...
@@ -8,18 +16,11 @@ select name from performance_schema.setup_instruments
where name like "wait/synch/sxlock/%" order by name;
name
wait/synch/sxlock/innodb/index_tree_rw_lock
select name from performance_schema.rwlock_instances
where name in
(
'wait/synch/sxlock/innodb/btr_search_latch',
'wait/synch/sxlock/innodb/checkpoint_lock',
'wait/synch/sxlock/innodb/dict_operation_lock',
'wait/synch/sxlock/innodb/trx_i_s_cache_lock',
'wait/synch/sxlock/innodb/trx_purge_latch'
)
order by name;
SELECT DISTINCT name FROM performance_schema.rwlock_instances
WHERE name LIKE 'wait/synch/sxlock/innodb/%'
ORDER BY name;
name
drop table if exists t1;
wait/synch/sxlock/innodb/index_tree_rw_lock
create table t1(a int) engine=innodb;
begin;
insert into t1 values (1), (2), (3);
...
...
mysql-test/suite/perfschema/t/sxlock_func.test
View file @
9c03c1c6
...
...
@@ -11,6 +11,10 @@ UPDATE performance_schema.setup_instruments SET enabled = 'NO', timed = 'YES';
UPDATE
performance_schema
.
setup_instruments
SET
enabled
=
'YES'
WHERE
name
like
'wait/synch/sxlock/%'
;
SELECT
DISTINCT
name
FROM
performance_schema
.
setup_instruments
WHERE
name
LIKE
'wait/synch/rwlock/innodb%'
AND
name
!=
'wait/synch/rwlock/innodb/btr_search_latch'
ORDER
BY
name
;
TRUNCATE
TABLE
performance_schema
.
events_waits_history_long
;
TRUNCATE
TABLE
performance_schema
.
events_waits_history
;
TRUNCATE
TABLE
performance_schema
.
events_waits_current
;
...
...
@@ -20,23 +24,12 @@ select name from performance_schema.setup_instruments
where
name
like
"wait/synch/sxlock/%"
order
by
name
;
# Check some SX-locks instances are instrumented
select
name
from
performance_schema
.
rwlock_instances
where
name
in
(
'wait/synch/sxlock/innodb/btr_search_latch'
,
'wait/synch/sxlock/innodb/checkpoint_lock'
,
'wait/synch/sxlock/innodb/dict_operation_lock'
,
'wait/synch/sxlock/innodb/trx_i_s_cache_lock'
,
'wait/synch/sxlock/innodb/trx_purge_latch'
)
order
by
name
;
SELECT
DISTINCT
name
FROM
performance_schema
.
rwlock_instances
WHERE
name
LIKE
'wait/synch/sxlock/innodb/%'
ORDER
BY
name
;
# Some Innodb payload, to produce data
--
disable_warnings
drop
table
if
exists
t1
;
--
enable_warnings
create
table
t1
(
a
int
)
engine
=
innodb
;
begin
;
insert
into
t1
values
(
1
),
(
2
),
(
3
);
...
...
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