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/sql_plist.h | |
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/sql_plist.h')
-rw-r--r-- | sql/sql_plist.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sql/sql_plist.h b/sql/sql_plist.h index 91fa9ef52bb..b0a0bb016d0 100644 --- a/sql/sql_plist.h +++ b/sql/sql_plist.h @@ -79,6 +79,7 @@ public: **B::prev_ptr(a)= next; } inline T* head() { return first; } + inline const T *head() const { return first; } void swap(I_P_List<T,B> &rhs) { swap_variables(T *, first, rhs.first); |