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
863c1a02
Commit
863c1a02
authored
Feb 24, 2022
by
Daniel Black
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MDEV-27932: perfschema.dml_file_instances mtr failure
Order by results in MTR test to make it predictable.
parent
b91a123d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
23 deletions
+23
-23
mysql-test/suite/perfschema/r/dml_file_instances.result
mysql-test/suite/perfschema/r/dml_file_instances.result
+12
-12
mysql-test/suite/perfschema/t/dml_file_instances.test
mysql-test/suite/perfschema/t/dml_file_instances.test
+11
-11
No files found.
mysql-test/suite/perfschema/r/dml_file_instances.result
View file @
863c1a02
...
...
@@ -34,57 +34,57 @@ OPEN_COUNT Open handles on the file. A value of greater than zero means that the
###
CREATE DATABASE db_26152751;
USE db_26152751;
SELECT FILE_NAME FROM performance_schema.file_instances WHERE FILE_NAME LIKE "%t_db_26152751%";
SELECT FILE_NAME FROM performance_schema.file_instances WHERE FILE_NAME LIKE "%t_db_26152751%"
ORDER BY FILE_NAME
;
FILE_NAME
CREATE TABLE t_db_26152751 (a INT) ENGINE=MYISAM;
SELECT FILE_NAME FROM performance_schema.file_instances WHERE FILE_NAME LIKE "%t_db_26152751%";
SELECT FILE_NAME FROM performance_schema.file_instances WHERE FILE_NAME LIKE "%t_db_26152751%"
ORDER BY FILE_NAME
;
FILE_NAME
t_db_26152751.MYD
t_db_26152751.MYI
t_db_26152751.frm
RENAME TABLE t_db_26152751 to t_db_26152751_new;
SELECT FILE_NAME FROM performance_schema.file_instances WHERE FILE_NAME LIKE "%t_db_26152751%";
SELECT FILE_NAME FROM performance_schema.file_instances WHERE FILE_NAME LIKE "%t_db_26152751%"
ORDER BY FILE_NAME
;
FILE_NAME
t_db_26152751_new.MYD
t_db_26152751_new.MYI
t_db_26152751_new.frm
RENAME TABLE t_db_26152751_new to t_db_26152751;
SELECT FILE_NAME FROM performance_schema.file_instances WHERE FILE_NAME LIKE "%t_db_26152751%";
SELECT FILE_NAME FROM performance_schema.file_instances WHERE FILE_NAME LIKE "%t_db_26152751%"
ORDER BY FILE_NAME
;
FILE_NAME
t_db_26152751.MYD
t_db_26152751.MYI
t_db_26152751.frm
ALTER TABLE t_db_26152751 ADD COLUMN b INT;
SELECT FILE_NAME FROM performance_schema.file_instances WHERE FILE_NAME LIKE "%t_db_26152751%";
SELECT FILE_NAME FROM performance_schema.file_instances WHERE FILE_NAME LIKE "%t_db_26152751%"
ORDER BY FILE_NAME
;
FILE_NAME
t_db_26152751.frm
t_db_26152751.MYI
t_db_26152751.MYD
t_db_26152751.MYI
DROP TABLE t_db_26152751;
SELECT FILE_NAME FROM performance_schema.file_instances WHERE FILE_NAME LIKE "%t_db_26152751%";
SELECT FILE_NAME FROM performance_schema.file_instances WHERE FILE_NAME LIKE "%t_db_26152751%"
ORDER BY FILE_NAME
;
FILE_NAME
CREATE TABLE t_db_26152751 (a INT) ENGINE=INNODB;
SELECT FILE_NAME FROM performance_schema.file_instances WHERE FILE_NAME LIKE "%t_db_26152751%";
SELECT FILE_NAME FROM performance_schema.file_instances WHERE FILE_NAME LIKE "%t_db_26152751%"
ORDER BY FILE_NAME
;
FILE_NAME
t_db_26152751.frm
t_db_26152751.ibd
RENAME TABLE t_db_26152751 to t_db_26152751_new;
SELECT FILE_NAME FROM performance_schema.file_instances WHERE FILE_NAME LIKE "%t_db_26152751%";
SELECT FILE_NAME FROM performance_schema.file_instances WHERE FILE_NAME LIKE "%t_db_26152751%"
ORDER BY FILE_NAME
;
FILE_NAME
t_db_26152751_new.frm
t_db_26152751_new.ibd
RENAME TABLE t_db_26152751_new to t_db_26152751;
SELECT FILE_NAME FROM performance_schema.file_instances WHERE FILE_NAME LIKE "%t_db_26152751%";
SELECT FILE_NAME FROM performance_schema.file_instances WHERE FILE_NAME LIKE "%t_db_26152751%"
ORDER BY FILE_NAME
;
FILE_NAME
t_db_26152751.frm
t_db_26152751.ibd
ALTER TABLE t_db_26152751 ADD COLUMN b INT;
SELECT FILE_NAME FROM performance_schema.file_instances WHERE FILE_NAME LIKE "%t_db_26152751%";
SELECT FILE_NAME FROM performance_schema.file_instances WHERE FILE_NAME LIKE "%t_db_26152751%"
ORDER BY FILE_NAME
;
FILE_NAME
t_db_26152751.frm
t_db_26152751.ibd
DROP TABLE t_db_26152751;
SELECT FILE_NAME FROM performance_schema.file_instances WHERE FILE_NAME LIKE "%t_db_26152751%";
SELECT FILE_NAME FROM performance_schema.file_instances WHERE FILE_NAME LIKE "%t_db_26152751%"
ORDER BY FILE_NAME
;
FILE_NAME
DROP DATABASE db_26152751;
#
...
...
mysql-test/suite/perfschema/t/dml_file_instances.test
View file @
863c1a02
...
...
@@ -49,58 +49,58 @@ where table_schema='performance_schema' and table_name='file_instances';
CREATE
DATABASE
db_26152751
;
USE
db_26152751
;
SELECT
FILE_NAME
FROM
performance_schema
.
file_instances
WHERE
FILE_NAME
LIKE
"%t_db_26152751%"
;
SELECT
FILE_NAME
FROM
performance_schema
.
file_instances
WHERE
FILE_NAME
LIKE
"%t_db_26152751%"
ORDER
BY
FILE_NAME
;
CREATE
TABLE
t_db_26152751
(
a
INT
)
ENGINE
=
MYISAM
;
--
sorted_result
--
replace_regex
/.*
\
/
t_db_26152751
/
t_db_26152751
/
SELECT
FILE_NAME
FROM
performance_schema
.
file_instances
WHERE
FILE_NAME
LIKE
"%t_db_26152751%"
;
SELECT
FILE_NAME
FROM
performance_schema
.
file_instances
WHERE
FILE_NAME
LIKE
"%t_db_26152751%"
ORDER
BY
FILE_NAME
;
RENAME
TABLE
t_db_26152751
to
t_db_26152751_new
;
--
sorted_result
--
replace_regex
/.*
\
/
t_db_26152751
/
t_db_26152751
/
SELECT
FILE_NAME
FROM
performance_schema
.
file_instances
WHERE
FILE_NAME
LIKE
"%t_db_26152751%"
;
SELECT
FILE_NAME
FROM
performance_schema
.
file_instances
WHERE
FILE_NAME
LIKE
"%t_db_26152751%"
ORDER
BY
FILE_NAME
;
RENAME
TABLE
t_db_26152751_new
to
t_db_26152751
;
--
sorted_result
--
replace_regex
/.*
\
/
t_db_26152751
/
t_db_26152751
/
SELECT
FILE_NAME
FROM
performance_schema
.
file_instances
WHERE
FILE_NAME
LIKE
"%t_db_26152751%"
;
SELECT
FILE_NAME
FROM
performance_schema
.
file_instances
WHERE
FILE_NAME
LIKE
"%t_db_26152751%"
ORDER
BY
FILE_NAME
;
ALTER
TABLE
t_db_26152751
ADD
COLUMN
b
INT
;
--
replace_regex
/.*
\
/
t_db_26152751
/
t_db_26152751
/
SELECT
FILE_NAME
FROM
performance_schema
.
file_instances
WHERE
FILE_NAME
LIKE
"%t_db_26152751%"
;
SELECT
FILE_NAME
FROM
performance_schema
.
file_instances
WHERE
FILE_NAME
LIKE
"%t_db_26152751%"
ORDER
BY
FILE_NAME
;
DROP
TABLE
t_db_26152751
;
SELECT
FILE_NAME
FROM
performance_schema
.
file_instances
WHERE
FILE_NAME
LIKE
"%t_db_26152751%"
;
SELECT
FILE_NAME
FROM
performance_schema
.
file_instances
WHERE
FILE_NAME
LIKE
"%t_db_26152751%"
ORDER
BY
FILE_NAME
;
CREATE
TABLE
t_db_26152751
(
a
INT
)
ENGINE
=
INNODB
;
--
replace_regex
/.*
\
/
t_db_26152751
/
t_db_26152751
/
SELECT
FILE_NAME
FROM
performance_schema
.
file_instances
WHERE
FILE_NAME
LIKE
"%t_db_26152751%"
;
SELECT
FILE_NAME
FROM
performance_schema
.
file_instances
WHERE
FILE_NAME
LIKE
"%t_db_26152751%"
ORDER
BY
FILE_NAME
;
RENAME
TABLE
t_db_26152751
to
t_db_26152751_new
;
--
replace_regex
/.*
\
/
t_db_26152751
/
t_db_26152751
/
SELECT
FILE_NAME
FROM
performance_schema
.
file_instances
WHERE
FILE_NAME
LIKE
"%t_db_26152751%"
;
SELECT
FILE_NAME
FROM
performance_schema
.
file_instances
WHERE
FILE_NAME
LIKE
"%t_db_26152751%"
ORDER
BY
FILE_NAME
;
RENAME
TABLE
t_db_26152751_new
to
t_db_26152751
;
--
replace_regex
/.*
\
/
t_db_26152751
/
t_db_26152751
/
SELECT
FILE_NAME
FROM
performance_schema
.
file_instances
WHERE
FILE_NAME
LIKE
"%t_db_26152751%"
;
SELECT
FILE_NAME
FROM
performance_schema
.
file_instances
WHERE
FILE_NAME
LIKE
"%t_db_26152751%"
ORDER
BY
FILE_NAME
;
ALTER
TABLE
t_db_26152751
ADD
COLUMN
b
INT
;
--
replace_regex
/.*
\
/
t_db_26152751
/
t_db_26152751
/
SELECT
FILE_NAME
FROM
performance_schema
.
file_instances
WHERE
FILE_NAME
LIKE
"%t_db_26152751%"
;
SELECT
FILE_NAME
FROM
performance_schema
.
file_instances
WHERE
FILE_NAME
LIKE
"%t_db_26152751%"
ORDER
BY
FILE_NAME
;
DROP
TABLE
t_db_26152751
;
SELECT
FILE_NAME
FROM
performance_schema
.
file_instances
WHERE
FILE_NAME
LIKE
"%t_db_26152751%"
;
SELECT
FILE_NAME
FROM
performance_schema
.
file_instances
WHERE
FILE_NAME
LIKE
"%t_db_26152751%"
ORDER
BY
FILE_NAME
;
DROP
DATABASE
db_26152751
;
...
...
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