summaryrefslogtreecommitdiff
path: root/sql/mdl.h
diff options
context:
space:
mode:
authorKentoku SHIBA <kentokushiba@gmail.com>2013-12-11 00:31:04 +0900
committerSergey Vojtovich <svoj@mariadb.org>2013-12-11 00:31:04 +0900
commit3771e14ea9957dde8f25ccf9f99df7a2aa906fcb (patch)
tree3d81343ced2061564af76d33138d9f450f3270c9 /sql/mdl.h
parent1f9d4819ad80528ac16c29f81dc397d93965f296 (diff)
downloadmariadb-git-3771e14ea9957dde8f25ccf9f99df7a2aa906fcb.tar.gz
add metadata_lock_info
Diffstat (limited to 'sql/mdl.h')
-rw-r--r--sql/mdl.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/sql/mdl.h b/sql/mdl.h
index e79df9b6cd7..4b24c0b7f59 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()); }
@@ -988,4 +988,7 @@ static const ulong MDL_LOCKS_HASH_PARTITIONS_DEFAULT = 8;
to avoid starving out weak, low-prio locks.
*/
extern "C" ulong max_write_lock_count;
+
+extern MYSQL_PLUGIN_IMPORT
+int mdl_iterate(int (*callback)(MDL_ticket *ticket, void *arg), void *arg);
#endif