diff options
Diffstat (limited to 'sql/mdl.h')
-rw-r--r-- | sql/mdl.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sql/mdl.h b/sql/mdl.h index 848c446496f..d560f38ce0a 100644 --- a/sql/mdl.h +++ b/sql/mdl.h @@ -397,6 +397,7 @@ public: m_type == MDL_EXCLUSIVE; } enum_mdl_type get_type() const { return m_type; } + MDL_lock *get_lock() const { return m_lock; } void downgrade_exclusive_lock(enum_mdl_type type); bool has_stronger_or_equal_type(enum_mdl_type type) const; @@ -423,7 +424,9 @@ private: */ MDL_context *m_ctx; - /** Pointer to the lock object for this lock ticket. Context private. */ + /** + Pointer to the lock object for this lock ticket. Externally accessible. + */ MDL_lock *m_lock; private: |