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

#include <sp.h>

Collaboration diagram for Sroutine_hash_entry:

Public Attributes

MDL_request mdl_request
Sroutine_hash_entrynext
TABLE_LISTbelong_to_view
ulong m_sp_cache_version

Detailed Description

Structure that represents element in the set of stored routines used by statement or routine.

Definition at line 123 of file sp.h.

Member Data Documentation

TABLE_LIST* Sroutine_hash_entry::belong_to_view

Uppermost view which directly or indirectly uses this routine. 0 if routine is not used in view. Note that it also can be 0 if statement uses routine both via view and directly.

Definition at line 141 of file sp.h.

ulong Sroutine_hash_entry::m_sp_cache_version

This is for prepared statement validation purposes. A statement looks up and pre-loads all its stored functions at prepare. Later on, if a function is gone from the cache, execute may fail. Remember the version of sp_head at prepare to be able to invalidate the prepared statement at execute if it changes.

Definition at line 151 of file sp.h.

MDL_request Sroutine_hash_entry::mdl_request

Metadata lock request for routine. MDL_key in this request is also used as a key for set.

Definition at line 130 of file sp.h.

Sroutine_hash_entry* Sroutine_hash_entry::next

Next element in list linking all routines in set. See also comments for LEX::sroutine/sroutine_list and sp_head::m_sroutines.

Definition at line 135 of file sp.h.


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