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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
4d4eed65
Commit
4d4eed65
authored
Feb 06, 2010
by
Konstantin Osipov
Browse files
Options
Browse Files
Download
Plain Diff
Merge next-4284 -> next-4284-merge
parents
a72f90bc
95c23861
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
48 additions
and
2 deletions
+48
-2
mysql-test/include/handler.inc
mysql-test/include/handler.inc
+20
-0
mysql-test/r/handler_innodb.result
mysql-test/r/handler_innodb.result
+13
-0
mysql-test/r/handler_myisam.result
mysql-test/r/handler_myisam.result
+13
-0
sql/mdl.cc
sql/mdl.cc
+2
-2
No files found.
mysql-test/include/handler.inc
View file @
4d4eed65
...
...
@@ -1522,3 +1522,23 @@ HANDLER t2 READ FIRST;
HANDLER
t2
CLOSE
;
DROP
TABLE
t1
,
t2
;
--
echo
#
--
echo
# Bug#50912 Assertion `ticket->m_type >= mdl_request->type'
--
echo
# failed on HANDLER + I_S
--
echo
#
--
disable_warnings
DROP
TABLE
IF
EXISTS
t1
;
--
enable_warnings
CREATE
TABLE
t1
(
id
INT
);
HANDLER
t1
OPEN
;
# This used to trigger the assert.
SELECT
table_name
,
table_comment
FROM
information_schema
.
tables
WHERE
table_schema
=
'test'
AND
table_name
=
't1'
;
HANDLER
t1
CLOSE
;
DROP
TABLE
t1
;
mysql-test/r/handler_innodb.result
View file @
4d4eed65
...
...
@@ -1476,3 +1476,16 @@ HANDLER t2 READ FIRST;
i
HANDLER t2 CLOSE;
DROP TABLE t1, t2;
#
# Bug#50912 Assertion `ticket->m_type >= mdl_request->type'
# failed on HANDLER + I_S
#
DROP TABLE IF EXISTS t1;
CREATE TABLE t1 (id INT);
HANDLER t1 OPEN;
SELECT table_name, table_comment FROM information_schema.tables
WHERE table_schema= 'test' AND table_name= 't1';
table_name table_comment
t1
HANDLER t1 CLOSE;
DROP TABLE t1;
mysql-test/r/handler_myisam.result
View file @
4d4eed65
...
...
@@ -1474,6 +1474,19 @@ i
HANDLER t2 CLOSE;
DROP TABLE t1, t2;
#
# Bug#50912 Assertion `ticket->m_type >= mdl_request->type'
# failed on HANDLER + I_S
#
DROP TABLE IF EXISTS t1;
CREATE TABLE t1 (id INT);
HANDLER t1 OPEN;
SELECT table_name, table_comment FROM information_schema.tables
WHERE table_schema= 'test' AND table_name= 't1';
table_name table_comment
t1
HANDLER t1 CLOSE;
DROP TABLE t1;
#
# BUG #46456: HANDLER OPEN + TRUNCATE + DROP (temporary) TABLE, crash
#
CREATE TABLE t1 AS SELECT 1 AS f1;
...
...
sql/mdl.cc
View file @
4d4eed65
...
...
@@ -1261,7 +1261,7 @@ MDL_context::try_acquire_lock(MDL_request *mdl_request)
if
((
ticket
=
find_ticket
(
mdl_request
,
&
is_transactional
)))
{
DBUG_ASSERT
(
ticket
->
m_lock
);
DBUG_ASSERT
(
ticket
->
m_type
>=
mdl_request
->
type
);
DBUG_ASSERT
(
ticket
->
has_stronger_or_equal_type
(
mdl_request
->
type
)
);
/*
If the request is for a transactional lock, and we found
a transactional lock, just reuse the found ticket.
...
...
@@ -1349,7 +1349,7 @@ MDL_context::clone_ticket(MDL_request *mdl_request)
return
TRUE
;
/* clone() is not supposed to be used to get a stronger lock. */
DBUG_ASSERT
(
ticket
->
m_type
<=
mdl_request
->
ticket
->
m_type
);
DBUG_ASSERT
(
mdl_request
->
ticket
->
has_stronger_or_equal_type
(
ticket
->
m_type
)
);
ticket
->
m_lock
=
mdl_request
->
ticket
->
m_lock
;
mdl_request
->
ticket
=
ticket
;
...
...
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