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
4e00dd68
Commit
4e00dd68
authored
Sep 30, 2013
by
Seppo Jaakola
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
References: lp:1233353 - releasing explicit MDL locks for BF aborted transactions
parent
239dcdaa
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
16 additions
and
3 deletions
+16
-3
sql/mdl.cc
sql/mdl.cc
+6
-1
sql/mdl.h
sql/mdl.h
+3
-0
sql/sql_base.cc
sql/sql_base.cc
+4
-2
sql/sql_parse.cc
sql/sql_parse.cc
+3
-0
No files found.
sql/mdl.cc
View file @
4e00dd68
...
@@ -2737,7 +2737,12 @@ void MDL_context::release_locks_stored_before(enum_mdl_duration duration,
...
@@ -2737,7 +2737,12 @@ void MDL_context::release_locks_stored_before(enum_mdl_duration duration,
DBUG_VOID_RETURN
;
DBUG_VOID_RETURN
;
}
}
#ifdef WITH_WSREP
void
MDL_context
::
release_explicit_locks
()
{
release_locks_stored_before
(
MDL_EXPLICIT
,
NULL
);
}
#endif
/**
/**
Release all explicit locks in the context which correspond to the
Release all explicit locks in the context which correspond to the
same name/object as this lock request.
same name/object as this lock request.
...
...
sql/mdl.h
View file @
4e00dd68
...
@@ -678,6 +678,9 @@ class MDL_context
...
@@ -678,6 +678,9 @@ class MDL_context
void
release_statement_locks
();
void
release_statement_locks
();
void
release_transactional_locks
();
void
release_transactional_locks
();
#ifdef WITH_WSREP
void
release_explicit_locks
();
#endif
void
rollback_to_savepoint
(
const
MDL_savepoint
&
mdl_savepoint
);
void
rollback_to_savepoint
(
const
MDL_savepoint
&
mdl_savepoint
);
inline
THD
*
get_thd
()
const
{
return
m_thd
;
}
inline
THD
*
get_thd
()
const
{
return
m_thd
;
}
...
...
sql/sql_base.cc
View file @
4e00dd68
...
@@ -9433,11 +9433,13 @@ void tdc_remove_table(THD *thd, enum_tdc_remove_table_type remove_type,
...
@@ -9433,11 +9433,13 @@ void tdc_remove_table(THD *thd, enum_tdc_remove_table_type remove_type,
{
{
mysql_mutex_assert_owner
(
&
LOCK_open
);
mysql_mutex_assert_owner
(
&
LOCK_open
);
}
}
#ifdef WITH_WSREP
/* if thd was BF aborted, exclusive locks were canceled */
#else
DBUG_ASSERT
(
remove_type
==
TDC_RT_REMOVE_UNUSED
||
DBUG_ASSERT
(
remove_type
==
TDC_RT_REMOVE_UNUSED
||
thd
->
mdl_context
.
is_lock_owner
(
MDL_key
::
TABLE
,
db
,
table_name
,
thd
->
mdl_context
.
is_lock_owner
(
MDL_key
::
TABLE
,
db
,
table_name
,
MDL_EXCLUSIVE
));
MDL_EXCLUSIVE
));
#endif
/* WITH_WSREP */
key_length
=
create_table_def_key
(
key
,
db
,
table_name
);
key_length
=
create_table_def_key
(
key
,
db
,
table_name
);
if
((
share
=
(
TABLE_SHARE
*
)
my_hash_search
(
&
table_def_cache
,(
uchar
*
)
key
,
if
((
share
=
(
TABLE_SHARE
*
)
my_hash_search
(
&
table_def_cache
,(
uchar
*
)
key
,
...
...
sql/sql_parse.cc
View file @
4e00dd68
...
@@ -8049,6 +8049,9 @@ static void wsrep_client_rollback(THD *thd)
...
@@ -8049,6 +8049,9 @@ static void wsrep_client_rollback(THD *thd)
/* Release transactional metadata locks. */
/* Release transactional metadata locks. */
thd
->
mdl_context
.
release_transactional_locks
();
thd
->
mdl_context
.
release_transactional_locks
();
/* release explicit MDL locks */
thd
->
mdl_context
.
release_explicit_locks
();
if
(
thd
->
get_binlog_table_maps
())
if
(
thd
->
get_binlog_table_maps
())
{
{
WSREP_DEBUG
(
"clearing binlog table map for BF abort (%ld)"
,
thd
->
thread_id
);
WSREP_DEBUG
(
"clearing binlog table map for BF abort (%ld)"
,
thd
->
thread_id
);
...
...
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