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
0e6c6d61
Commit
0e6c6d61
authored
Jun 30, 2017
by
Sergei Golubchik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix main.mdl failure in --embedded
parent
e022c22b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
11 deletions
+11
-11
mysql-test/r/mdl.result
mysql-test/r/mdl.result
+9
-9
mysql-test/t/mdl.test
mysql-test/t/mdl.test
+2
-2
No files found.
mysql-test/r/mdl.result
View file @
0e6c6d61
...
...
@@ -7,16 +7,16 @@
#
CREATE TABLE t1(a INT) ENGINE=InnoDB;
LOCK TABLES t1 WRITE CONCURRENT, t1 AS t2 READ;
SELECT
*
FROM information_schema.metadata_lock_info;
THREAD_ID LOCK_MODE LOCK_DURATION
LOCK_TYPE TABLE_SCHEMA TABLE_NAME
9 MDL_INTENTION_EXCLUSIVE NULL
Global read lock
9 MDL_SHARED_NO_READ_WRITE NULL
Table metadata lock test t1
SELECT
LOCK_MODE, LOCK_TYPE, TABLE_SCHEMA, TABLE_NAME
FROM information_schema.metadata_lock_info;
LOCK_MODE
LOCK_TYPE TABLE_SCHEMA TABLE_NAME
MDL_INTENTION_EXCLUSIVE
Global read lock
MDL_SHARED_NO_READ_WRITE
Table metadata lock test t1
UNLOCK TABLES;
LOCK TABLES t1 AS t2 READ, t1 WRITE CONCURRENT;
SELECT
*
FROM information_schema.metadata_lock_info;
THREAD_ID LOCK_MODE LOCK_DURATION
LOCK_TYPE TABLE_SCHEMA TABLE_NAME
9 MDL_INTENTION_EXCLUSIVE NULL
Global read lock
9 MDL_SHARED_WRITE NULL
Table metadata lock test t1
9 MDL_SHARED_READ_ONLY NULL
Table metadata lock test t1
SELECT
LOCK_MODE, LOCK_TYPE, TABLE_SCHEMA, TABLE_NAME
FROM information_schema.metadata_lock_info;
LOCK_MODE
LOCK_TYPE TABLE_SCHEMA TABLE_NAME
MDL_INTENTION_EXCLUSIVE
Global read lock
MDL_SHARED_WRITE
Table metadata lock test t1
MDL_SHARED_READ_ONLY
Table metadata lock test t1
UNLOCK TABLES;
DROP TABLE t1;
mysql-test/t/mdl.test
View file @
0e6c6d61
...
...
@@ -11,9 +11,9 @@
CREATE
TABLE
t1
(
a
INT
)
ENGINE
=
InnoDB
;
LOCK
TABLES
t1
WRITE
CONCURRENT
,
t1
AS
t2
READ
;
SELECT
*
FROM
information_schema
.
metadata_lock_info
;
SELECT
LOCK_MODE
,
LOCK_TYPE
,
TABLE_SCHEMA
,
TABLE_NAME
FROM
information_schema
.
metadata_lock_info
;
UNLOCK
TABLES
;
LOCK
TABLES
t1
AS
t2
READ
,
t1
WRITE
CONCURRENT
;
SELECT
*
FROM
information_schema
.
metadata_lock_info
;
SELECT
LOCK_MODE
,
LOCK_TYPE
,
TABLE_SCHEMA
,
TABLE_NAME
FROM
information_schema
.
metadata_lock_info
;
UNLOCK
TABLES
;
DROP
TABLE
t1
;
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