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
a7211fb8
Commit
a7211fb8
authored
Mar 11, 2011
by
Marc Alff
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Test cleanup
parent
46b7a382
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
32 additions
and
4 deletions
+32
-4
mysql-test/suite/perfschema/r/relaylog.result
mysql-test/suite/perfschema/r/relaylog.result
+10
-2
mysql-test/suite/perfschema/t/relaylog.test
mysql-test/suite/perfschema/t/relaylog.test
+22
-2
No files found.
mysql-test/suite/perfschema/r/relaylog.result
View file @
a7211fb8
...
...
@@ -84,7 +84,11 @@ if (count_write > 0,"MANY", "NONE") as COUNT_WRITE,
if (sum_number_of_bytes_read > 0, "MANY", "NONE") as SUM_NUMBER_OF_BYTES_READ,
if (sum_number_of_bytes_write > 0, "MANY", "NONE") as SUM_NUMBER_OF_BYTES_WRITE
from performance_schema.file_summary_by_instance
where file_name like "%slave-%" order by file_name;
where file_name like "%slave-%"
and (file_name not like "%slave-relay-bin.0%"
or file_name like "%slave-relay-bin.000001"
or file_name like "%slave-relay-bin.000002")
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 MANY NONE MANY
...
...
@@ -134,7 +138,11 @@ if (count_write > 0,"MANY", "NONE") as COUNT_WRITE,
if (sum_number_of_bytes_read > 0, "MANY", "NONE") as SUM_NUMBER_OF_BYTES_READ,
if (sum_number_of_bytes_write > 0, "MANY", "NONE") as SUM_NUMBER_OF_BYTES_WRITE
from performance_schema.file_summary_by_instance
where event_name like "%relaylog%" order by file_name;
where event_name like "%relaylog%"
and (file_name not like "%slave-relay-bin.0%"
or file_name like "%slave-relay-bin.000001"
or file_name like "%slave-relay-bin.000002")
order by file_name;
FILE_NAME EVENT_NAME COUNT_READ COUNT_WRITE SUM_NUMBER_OF_BYTES_READ SUM_NUMBER_OF_BYTES_WRITE
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
...
...
mysql-test/suite/perfschema/t/relaylog.test
View file @
a7211fb8
...
...
@@ -31,6 +31,18 @@ drop table test.t1;
--
source
include
/
show_binlog_events
.
inc
# Notes
#
# The point of this test is to make sure code is properly instrumented,
# where instruments have the proper key (binlog or relaylog),
# it is not to dive into statistics for each instruments.
# Different test execution sequence in different platforms do make the
# results vary, making the test results very sensitive to changes.
# To ensure robustness:
# - log file rotation is limited to file .000001 and .000002
# - statistics are normalized to "NONE" or "MANY"
#
connection
master
;
--
echo
"============ Performance schema on master ============"
...
...
@@ -99,7 +111,11 @@ select
if
(
sum_number_of_bytes_read
>
0
,
"MANY"
,
"NONE"
)
as
SUM_NUMBER_OF_BYTES_READ
,
if
(
sum_number_of_bytes_write
>
0
,
"MANY"
,
"NONE"
)
as
SUM_NUMBER_OF_BYTES_WRITE
from
performance_schema
.
file_summary_by_instance
where
file_name
like
"%slave-%"
order
by
file_name
;
where
file_name
like
"%slave-%"
and
(
file_name
not
like
"%slave-relay-bin.0%"
or
file_name
like
"%slave-relay-bin.000001"
or
file_name
like
"%slave-relay-bin.000002"
)
order
by
file_name
;
--
echo
"Expect a slave binlog + binlog_index"
...
...
@@ -138,7 +154,11 @@ select
if
(
sum_number_of_bytes_read
>
0
,
"MANY"
,
"NONE"
)
as
SUM_NUMBER_OF_BYTES_READ
,
if
(
sum_number_of_bytes_write
>
0
,
"MANY"
,
"NONE"
)
as
SUM_NUMBER_OF_BYTES_WRITE
from
performance_schema
.
file_summary_by_instance
where
event_name
like
"%relaylog%"
order
by
file_name
;
where
event_name
like
"%relaylog%"
and
(
file_name
not
like
"%slave-relay-bin.0%"
or
file_name
like
"%slave-relay-bin.000001"
or
file_name
like
"%slave-relay-bin.000002"
)
order
by
file_name
;
select
EVENT_NAME
,
...
...
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