MySQL 5.6.14 Source Code Document
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
MDL_map Class Reference

Public Member Functions

void init ()
void destroy ()
MDL_lockfind_or_insert (const MDL_key *key)
void remove (MDL_lock *lock)

Detailed Description

A collection of all MDL locks. A singleton, there is only one instance of the map in the server. Contains instances of MDL_map_partition

Definition at line 172 of file mdl.cc.

Member Function Documentation

void MDL_map::destroy ( )

Destroy the container for all MDL locks.

Precondition
It must be empty.

Definition at line 736 of file mdl.cc.

Here is the call graph for this function:

MDL_lock * MDL_map::find_or_insert ( const MDL_key mdl_key)

Find MDL_lock object corresponding to the key, create it if it does not exist.

Return values
non-NULL- Success. MDL_lock instance for the key with locked MDL_lock::m_rwlock.
NULL- Failure (OOM).

Definition at line 775 of file mdl.cc.

Here is the call graph for this function:

void MDL_map::init ( )

Initialize the container for all MDL locks.

Definition at line 705 of file mdl.cc.

Here is the call graph for this function:

void MDL_map::remove ( MDL_lock lock)

Destroy MDL_lock object or delegate this responsibility to whatever thread that holds the last outstanding reference to it.

Definition at line 963 of file mdl.cc.

Here is the call graph for this function:

Here is the caller graph for this function:


The documentation for this class was generated from the following file: