diff options
author | Sergey Vojtovich <svoj@mariadb.org> | 2015-02-27 11:30:35 +0400 |
---|---|---|
committer | Sergey Vojtovich <svoj@mariadb.org> | 2015-03-04 13:34:53 +0400 |
commit | 5c6aa4dea00c4e289491dfa717a25b56ec9441c2 (patch) | |
tree | 6f5a781883e0414975f6928eecd0729013efa0ec /sql/mdl.h | |
parent | d9e3a9f20e59142666c72c7fb876fbf05b0cf510 (diff) | |
download | mariadb-git-5c6aa4dea00c4e289491dfa717a25b56ec9441c2.tar.gz |
MDEV-6089 - MySQL WL#7305 "Improve MDL scalability by using lock-free hash"
Replaced hash with lock-free hash.
Diffstat (limited to 'sql/mdl.h')
-rw-r--r-- | sql/mdl.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sql/mdl.h b/sql/mdl.h index ee1c418eb74..f7a5d160e53 100644 --- a/sql/mdl.h +++ b/sql/mdl.h @@ -28,7 +28,7 @@ #include <my_sys.h> #include <m_string.h> #include <mysql_com.h> -#include <hash.h> +#include <lf.h> #include <algorithm> @@ -917,6 +917,7 @@ private: readily available to the wait-for graph iterator. */ MDL_wait_for_subgraph *m_waiting_for; + LF_PINS *m_pins; private: MDL_ticket *find_ticket(MDL_request *mdl_req, enum_mdl_duration *duration); @@ -924,6 +925,7 @@ private: void release_lock(enum_mdl_duration duration, MDL_ticket *ticket); bool try_acquire_lock_impl(MDL_request *mdl_request, MDL_ticket **out_ticket); + bool fix_pins(); public: THD *get_thd() const { return m_owner->get_thd(); } |