diff options
author | Sergey Vojtovich <svoj@mariadb.org> | 2013-12-16 12:26:20 +0400 |
---|---|---|
committer | Sergey Vojtovich <svoj@mariadb.org> | 2013-12-16 12:26:20 +0400 |
commit | cd342e78b8cd124f2a99602547a037f7fbf51076 (patch) | |
tree | 702af2ee6330f6618c0031548898dc60ac4e8a56 /sql/mdl.h | |
parent | 4dafdf160fc98171c1081ab0d13ff551c21eac4a (diff) | |
download | mariadb-git-cd342e78b8cd124f2a99602547a037f7fbf51076.tar.gz |
MDEV-4748 - metadata_lock_info plugin
- restore find_ticket() private status, declare friend function instead
- added metadata_lock_info to DEFAULT_SUITES
Diffstat (limited to 'sql/mdl.h')
-rw-r--r-- | sql/mdl.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/sql/mdl.h b/sql/mdl.h index 4b24c0b7f59..c7c445c75e1 100644 --- a/sql/mdl.h +++ b/sql/mdl.h @@ -904,14 +904,14 @@ private: MDL_wait_for_subgraph *m_waiting_for; private: THD *get_thd() const { return m_owner->get_thd(); } + MDL_ticket *find_ticket(MDL_request *mdl_req, + enum_mdl_duration *duration); void release_locks_stored_before(enum_mdl_duration duration, MDL_ticket *sentinel); void release_lock(enum_mdl_duration duration, MDL_ticket *ticket); bool try_acquire_lock_impl(MDL_request *mdl_request, MDL_ticket **out_ticket); public: - MDL_ticket *find_ticket(MDL_request *mdl_req, - enum_mdl_duration *duration); void find_deadlock(); ulong get_thread_id() const { return thd_get_thread_id(get_thd()); } @@ -944,6 +944,9 @@ public: private: MDL_context(const MDL_context &rhs); /* not implemented */ MDL_context &operator=(MDL_context &rhs); /* not implemented */ + + /* metadata_lock_info plugin */ + friend int i_s_metadata_lock_info_fill_row(MDL_ticket*, void*); }; |