diff options
author | Konstantin Osipov <kostja@sun.com> | 2009-12-04 02:52:05 +0300 |
---|---|---|
committer | Konstantin Osipov <kostja@sun.com> | 2009-12-04 02:52:05 +0300 |
commit | a9013f8fbae943dc4d2b5bbd0f8005f0edb3cace (patch) | |
tree | 6865c45e4fd723b4972eb4705acf049a4d4f9fff /sql/rpl_rli.cc | |
parent | 97abce0e7c3c7948b5b83d661638a20b175ec8bd (diff) | |
download | mariadb-git-a9013f8fbae943dc4d2b5bbd0f8005f0edb3cace.tar.gz |
Backport of:
----------------------------------------------------------
revno: 2617.23.20
committer: Konstantin Osipov <kostja@sun.com>
branch nick: mysql-6.0-runtime
timestamp: Wed 2009-03-04 16:31:31 +0300
message:
WL#4284 "Transactional DDL locking"
Review comments: "Objectify" the MDL API.
MDL_request and MDL_context still need manual construction and
destruction, since they are used in environment that is averse
to constructors/destructors.
sql/mdl.cc:
Improve comments.
Add asserts to backup()/restore_from_backup()/merge() methods.
Fix an order bug in the error path of mdl_acquire_exclusive_locks():
we used to first free a ticket object, and only then exclude
it from the list of tickets.
Diffstat (limited to 'sql/rpl_rli.cc')
-rw-r--r-- | sql/rpl_rli.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/rpl_rli.cc b/sql/rpl_rli.cc index 0a703475aa7..695b160fc01 100644 --- a/sql/rpl_rli.cc +++ b/sql/rpl_rli.cc @@ -1205,7 +1205,7 @@ void Relay_log_info::clear_tables_to_lock() meta-data locks are stored. So we want to be sure that we don't have any references to this memory left. */ - DBUG_ASSERT(!mdl_has_locks(&(current_thd->mdl_context))); + DBUG_ASSERT(!current_thd->mdl_context.has_locks()); while (tables_to_lock) { |