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
07977c13
Commit
07977c13
authored
Sep 05, 2017
by
Monty
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed monitor.test to handle statistics >= 10
parent
ef2ecf03
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
27 deletions
+21
-27
mysql-test/suite/innodb/r/monitor.result
mysql-test/suite/innodb/r/monitor.result
+15
-15
mysql-test/suite/innodb/t/monitor.test
mysql-test/suite/innodb/t/monitor.test
+6
-12
No files found.
mysql-test/suite/innodb/r/monitor.result
View file @
07977c13
...
...
@@ -622,46 +622,46 @@ set global innodb_monitor_reset_all = default;
# MONITORS
#
CREATE TABLE t1 (a INT PRIMARY KEY) ENGINE=InnoDB;
SELECT NAME, COUNT FROM INFORMATION_SCHEMA.INNODB_METRICS WHERE NAME
SELECT NAME, COUNT
> 0
FROM INFORMATION_SCHEMA.INNODB_METRICS WHERE NAME
LIKE 'buffer_page_written_index_leaf';
NAME COUNT
NAME COUNT
> 0
buffer_page_written_index_leaf 0
SET GLOBAL innodb_monitor_enable='module_buffer_page';
INSERT INTO t1 VALUES (1), (2), (3), (4);
FLUSH TABLES t1 FOR EXPORT;
UNLOCK TABLES;
SELECT NAME, COUNT FROM INFORMATION_SCHEMA.INNODB_METRICS WHERE NAME
SELECT NAME, COUNT
> 0
FROM INFORMATION_SCHEMA.INNODB_METRICS WHERE NAME
LIKE 'buffer_page_written_index_leaf';
NAME COUNT
buffer_page_written_index_leaf
NNNN
NAME COUNT
> 0
buffer_page_written_index_leaf
1
SET GLOBAL innodb_monitor_disable='module_buffer_page';
SET GLOBAL innodb_monitor_reset_all='module_buffer_page';
SELECT NAME, COUNT FROM INFORMATION_SCHEMA.INNODB_METRICS WHERE NAME
SELECT NAME, COUNT
> 0
FROM INFORMATION_SCHEMA.INNODB_METRICS WHERE NAME
LIKE 'buffer_page_written_index_leaf';
NAME COUNT
NAME COUNT
> 0
buffer_page_written_index_leaf 0
SET GLOBAL innodb_monitor_enable='%';
INSERT INTO t1 VALUES (5), (6), (7), (8);
FLUSH TABLES t1 FOR EXPORT;
UNLOCK TABLES;
SELECT NAME, COUNT FROM INFORMATION_SCHEMA.INNODB_METRICS WHERE NAME
SELECT NAME, COUNT
> 0
FROM INFORMATION_SCHEMA.INNODB_METRICS WHERE NAME
LIKE 'buffer_page_written_index_leaf';
NAME COUNT
buffer_page_written_index_leaf
NNNN
NAME COUNT
> 0
buffer_page_written_index_leaf
1
SET GLOBAL innodb_monitor_disable='%';
SET GLOBAL innodb_monitor_reset_all='%';
SELECT NAME, COUNT FROM INFORMATION_SCHEMA.INNODB_METRICS WHERE NAME
SELECT NAME, COUNT
> 0
FROM INFORMATION_SCHEMA.INNODB_METRICS WHERE NAME
LIKE 'buffer_page_written_index_leaf';
NAME COUNT
NAME COUNT
> 0
buffer_page_written_index_leaf 0
SET GLOBAL innodb_monitor_enable='ALL';
INSERT INTO t1 VALUES (9), (10), (11), (12);
FLUSH TABLES t1 FOR EXPORT;
UNLOCK TABLES;
SELECT NAME, COUNT FROM INFORMATION_SCHEMA.INNODB_METRICS WHERE NAME
SELECT NAME, COUNT
> 0
FROM INFORMATION_SCHEMA.INNODB_METRICS WHERE NAME
LIKE 'buffer_page_written_index_leaf';
NAME COUNT
buffer_page_written_index_leaf
NNNN
NAME COUNT
> 0
buffer_page_written_index_leaf
1
SET GLOBAL innodb_monitor_enable=default;
SET GLOBAL innodb_monitor_disable=default;
SET GLOBAL innodb_monitor_reset_all=default;
...
...
mysql-test/suite/innodb/t/monitor.test
View file @
07977c13
...
...
@@ -391,41 +391,35 @@ CREATE TABLE t1 (a INT PRIMARY KEY) ENGINE=InnoDB;
let
$innodb_monitor_enable
=
`SELECT @@innodb_monitor_enable`
;
--
replace_regex
/
[
1
-
9
]
/
NNNN
/
SELECT
NAME
,
COUNT
FROM
INFORMATION_SCHEMA
.
INNODB_METRICS
WHERE
NAME
SELECT
NAME
,
COUNT
>
0
FROM
INFORMATION_SCHEMA
.
INNODB_METRICS
WHERE
NAME
LIKE
'buffer_page_written_index_leaf'
;
SET
GLOBAL
innodb_monitor_enable
=
'module_buffer_page'
;
INSERT
INTO
t1
VALUES
(
1
),
(
2
),
(
3
),
(
4
);
FLUSH
TABLES
t1
FOR
EXPORT
;
UNLOCK
TABLES
;
--
replace_regex
/
[
1
-
9
]
/
NNNN
/
SELECT
NAME
,
COUNT
FROM
INFORMATION_SCHEMA
.
INNODB_METRICS
WHERE
NAME
SELECT
NAME
,
COUNT
>
0
FROM
INFORMATION_SCHEMA
.
INNODB_METRICS
WHERE
NAME
LIKE
'buffer_page_written_index_leaf'
;
SET
GLOBAL
innodb_monitor_disable
=
'module_buffer_page'
;
SET
GLOBAL
innodb_monitor_reset_all
=
'module_buffer_page'
;
--
replace_regex
/
[
1
-
9
]
/
NNNN
/
SELECT
NAME
,
COUNT
FROM
INFORMATION_SCHEMA
.
INNODB_METRICS
WHERE
NAME
SELECT
NAME
,
COUNT
>
0
FROM
INFORMATION_SCHEMA
.
INNODB_METRICS
WHERE
NAME
LIKE
'buffer_page_written_index_leaf'
;
SET
GLOBAL
innodb_monitor_enable
=
'%'
;
INSERT
INTO
t1
VALUES
(
5
),
(
6
),
(
7
),
(
8
);
FLUSH
TABLES
t1
FOR
EXPORT
;
UNLOCK
TABLES
;
--
replace_regex
/
[
1
-
9
]
/
NNNN
/
SELECT
NAME
,
COUNT
FROM
INFORMATION_SCHEMA
.
INNODB_METRICS
WHERE
NAME
SELECT
NAME
,
COUNT
>
0
FROM
INFORMATION_SCHEMA
.
INNODB_METRICS
WHERE
NAME
LIKE
'buffer_page_written_index_leaf'
;
SET
GLOBAL
innodb_monitor_disable
=
'%'
;
SET
GLOBAL
innodb_monitor_reset_all
=
'%'
;
--
replace_regex
/
[
1
-
9
]
/
NNNN
/
SELECT
NAME
,
COUNT
FROM
INFORMATION_SCHEMA
.
INNODB_METRICS
WHERE
NAME
SELECT
NAME
,
COUNT
>
0
FROM
INFORMATION_SCHEMA
.
INNODB_METRICS
WHERE
NAME
LIKE
'buffer_page_written_index_leaf'
;
SET
GLOBAL
innodb_monitor_enable
=
'ALL'
;
INSERT
INTO
t1
VALUES
(
9
),
(
10
),
(
11
),
(
12
);
FLUSH
TABLES
t1
FOR
EXPORT
;
UNLOCK
TABLES
;
--
replace_regex
/
[
1
-
9
]
/
NNNN
/
SELECT
NAME
,
COUNT
FROM
INFORMATION_SCHEMA
.
INNODB_METRICS
WHERE
NAME
SELECT
NAME
,
COUNT
>
0
FROM
INFORMATION_SCHEMA
.
INNODB_METRICS
WHERE
NAME
LIKE
'buffer_page_written_index_leaf'
;
--
disable_warnings
...
...
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