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
a9a0d0c3
Commit
a9a0d0c3
authored
Oct 27, 2018
by
Sergei Golubchik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
5.6.42
parent
7fcd9660
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
8 deletions
+11
-8
mysql-test/suite/perfschema/r/relaylog.result
mysql-test/suite/perfschema/r/relaylog.result
+7
-7
storage/perfschema/unittest/pfs-t.cc
storage/perfschema/unittest/pfs-t.cc
+4
-1
No files found.
mysql-test/suite/perfschema/r/relaylog.result
View file @
a9a0d0c3
...
...
@@ -23,7 +23,7 @@ from performance_schema.file_summary_by_instance
where file_name like "%master-%" order by file_name;
FILE_NAME EVENT_NAME COUNT_READ COUNT_WRITE SUM_NUMBER_OF_BYTES_READ SUM_NUMBER_OF_BYTES_WRITE
master-bin.000001 wait/io/file/sql/binlog MANY MANY MANY MANY
master-bin.index wait/io/file/sql/binlog_index
NONE NONE NONE
NONE
master-bin.index wait/io/file/sql/binlog_index
MANY NONE MANY
NONE
select * from performance_schema.file_summary_by_instance
where file_name like "%slave-%" order by file_name;
FILE_NAME EVENT_NAME OBJECT_INSTANCE_BEGIN COUNT_STAR SUM_TIMER_WAIT MIN_TIMER_WAIT AVG_TIMER_WAIT MAX_TIMER_WAIT COUNT_READ SUM_TIMER_READ MIN_TIMER_READ AVG_TIMER_READ MAX_TIMER_READ SUM_NUMBER_OF_BYTES_READ COUNT_WRITE SUM_TIMER_WRITE MIN_TIMER_WRITE AVG_TIMER_WRITE MAX_TIMER_WRITE SUM_NUMBER_OF_BYTES_WRITE COUNT_MISC SUM_TIMER_MISC MIN_TIMER_MISC AVG_TIMER_MISC MAX_TIMER_MISC
...
...
@@ -39,7 +39,7 @@ from performance_schema.file_summary_by_instance
where event_name like "%binlog%" order by file_name;
FILE_NAME EVENT_NAME COUNT_READ COUNT_WRITE SUM_NUMBER_OF_BYTES_READ SUM_NUMBER_OF_BYTES_WRITE
master-bin.000001 wait/io/file/sql/binlog MANY MANY MANY MANY
master-bin.index wait/io/file/sql/binlog_index
NONE NONE NONE
NONE
master-bin.index wait/io/file/sql/binlog_index
MANY NONE MANY
NONE
select
EVENT_NAME,
if (count_read > 0, "MANY", "NONE") as COUNT_READ,
...
...
@@ -50,7 +50,7 @@ from performance_schema.file_summary_by_event_name
where event_name like "%binlog%" order by event_name;
EVENT_NAME COUNT_READ COUNT_WRITE SUM_NUMBER_OF_BYTES_READ SUM_NUMBER_OF_BYTES_WRITE
wait/io/file/sql/binlog MANY MANY MANY MANY
wait/io/file/sql/binlog_index MANY NONE
NONE
NONE
wait/io/file/sql/binlog_index MANY NONE
MANY
NONE
select
EVENT_NAME,
if (count_star > 0, "MANY", "NONE") as COUNT_STAR
...
...
@@ -114,10 +114,10 @@ where file_name like "%slave-%"
order by file_name;
FILE_NAME EVENT_NAME COUNT_READ COUNT_WRITE SUM_NUMBER_OF_BYTES_READ SUM_NUMBER_OF_BYTES_WRITE
slave-bin.000001 wait/io/file/sql/binlog MANY MANY MANY MANY
slave-bin.index wait/io/file/sql/binlog_index
NONE NONE NONE
NONE
slave-bin.index wait/io/file/sql/binlog_index
MANY NONE MANY
NONE
slave-relay-bin.000001 wait/io/file/sql/relaylog MANY MANY MANY MANY
slave-relay-bin.000002 wait/io/file/sql/relaylog MANY MANY MANY MANY
slave-relay-bin.index wait/io/file/sql/binlog_index
NONE NONE NONE
NONE
slave-relay-bin.index wait/io/file/sql/binlog_index
MANY NONE MANY
NONE
"Expect a slave binlog + binlog_index"
select
substring(file_name, locate("slave-", file_name)) as FILE_NAME,
...
...
@@ -130,8 +130,8 @@ from performance_schema.file_summary_by_instance
where event_name like "%binlog%" order by file_name;
FILE_NAME EVENT_NAME COUNT_READ COUNT_WRITE SUM_NUMBER_OF_BYTES_READ SUM_NUMBER_OF_BYTES_WRITE
slave-bin.000001 wait/io/file/sql/binlog MANY MANY MANY MANY
slave-bin.index wait/io/file/sql/binlog_index
NONE NONE NONE
NONE
slave-relay-bin.index wait/io/file/sql/binlog_index
NONE NONE NONE
NONE
slave-bin.index wait/io/file/sql/binlog_index
MANY NONE MANY
NONE
slave-relay-bin.index wait/io/file/sql/binlog_index
MANY NONE MANY
NONE
select
EVENT_NAME,
if (count_read > 0, "MANY", "NONE") as COUNT_READ,
...
...
storage/perfschema/unittest/pfs-t.cc
View file @
a9a0d0c3
/* Copyright (c) 2008, 201
7
, Oracle and/or its affiliates. All rights reserved.
/* Copyright (c) 2008, 201
8
, Oracle and/or its affiliates. All rights reserved.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
...
...
@@ -899,6 +899,7 @@ void test_init_disabled()
psi
->
create_file
(
file_key_A
,
"foo-instrumented"
,
(
File
)
12
);
file_A1
=
lookup_file_by_name
(
"foo-instrumented"
);
ok
(
file_A1
!=
NULL
,
"file_A1 instrumented"
);
destroy_file
(
reinterpret_cast
<
PFS_thread
*>
(
psi
->
get_thread
()),
file_A1
);
/* broken key + enabled T-1: no instrumentation */
...
...
@@ -1150,6 +1151,8 @@ void test_locker_disabled()
psi
->
create_file
(
file_key_A
,
"foo"
,
(
File
)
12
);
file_A1
=
(
PSI_file
*
)
lookup_file_by_name
(
"foo"
);
ok
(
file_A1
!=
NULL
,
"instrumented"
);
destroy_file
(
reinterpret_cast
<
PFS_thread
*>
(
psi
->
get_thread
()),
reinterpret_cast
<
PFS_file
*>
(
file_A1
));
socket_class_A
->
m_enabled
=
true
;
socket_A1
=
psi
->
init_socket
(
socket_key_A
,
NULL
,
NULL
,
0
);
...
...
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