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
4d0f0c78
Commit
4d0f0c78
authored
Feb 04, 2010
by
Konstantin Osipov
Browse files
Options
Browse Files
Download
Plain Diff
Merge next-4284 -> next-4284-merge
parents
f141542a
bcf70096
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
32 deletions
+0
-32
sql/mdl.cc
sql/mdl.cc
+0
-30
sql/mdl.h
sql/mdl.h
+0
-2
No files found.
sql/mdl.cc
View file @
4d0f0c78
...
...
@@ -1140,36 +1140,6 @@ bool MDL_ticket::is_incompatible_when_waiting(enum_mdl_type type) const
}
/**
Acquire global intention exclusive lock.
@param[in] mdl_request Lock request object for lock to be acquired
@retval FALSE Success. The lock has been acquired.
@retval TRUE Error.
*/
bool
MDL_context
::
acquire_global_intention_exclusive_lock
(
MDL_request
*
mdl_request
)
{
DBUG_ASSERT
(
mdl_request
->
key
.
mdl_namespace
()
==
MDL_key
::
GLOBAL
&&
mdl_request
->
type
==
MDL_INTENTION_EXCLUSIVE
);
/*
If this is a non-recursive attempt to acquire global intention
exclusive lock we might have to wait until active global shared
lock or pending requests will go away. Since we won't hold any
resources (except associated with open HANDLERs) while doing it
deadlocks are not possible.
*/
DBUG_ASSERT
(
is_lock_owner
(
MDL_key
::
GLOBAL
,
""
,
""
,
MDL_INTENTION_EXCLUSIVE
)
||
!
has_locks
()
||
(
m_trans_sentinel
&&
m_tickets
.
front
()
==
m_trans_sentinel
));
return
acquire_lock
(
mdl_request
);
}
/**
Check whether the context already holds a compatible lock ticket
on an object.
...
...
sql/mdl.h
View file @
4d0f0c78
...
...
@@ -515,8 +515,6 @@ class MDL_context
inline
THD
*
get_thd
()
const
{
return
m_thd
;
}
bool
acquire_global_intention_exclusive_lock
(
MDL_request
*
mdl_request
);
/**
Wake up context which is waiting for a change of MDL_lock state.
*/
...
...
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