summaryrefslogtreecommitdiff
path: root/sql/sp_cache.cc
diff options
context:
space:
mode:
Diffstat (limited to 'sql/sp_cache.cc')
-rw-r--r--sql/sp_cache.cc20
1 files changed, 10 insertions, 10 deletions
diff --git a/sql/sp_cache.cc b/sql/sp_cache.cc
index e4ffbdcb155..b3949a94751 100644
--- a/sql/sp_cache.cc
+++ b/sql/sp_cache.cc
@@ -27,7 +27,7 @@ static ulong volatile Cversion= 1;
/*
- Cache of stored routines.
+ Cache of stored routines.
*/
class sp_cache
@@ -149,8 +149,8 @@ void sp_cache_end()
sp_cache_insert()
cp The cache to put routine into
sp Routine to insert.
-
- TODO: Perhaps it will be more straightforward if in case we returned an
+
+ TODO: Perhaps it will be more straightforward if in case we returned an
error from this function when we couldn't allocate sp_cache. (right
now failure to put routine into cache will cause a 'SP not found'
error to be reported at some later time)
@@ -173,18 +173,18 @@ void sp_cache_insert(sp_cache **cp, sp_head *sp)
}
-/*
+/*
Look up a routine in the cache.
SYNOPSIS
sp_cache_lookup()
cp Cache to look into
name Name of rutine to find
-
+
NOTE
An obsolete (but not more obsolete then since last
sp_cache_flush_obsolete call) routine may be returned.
- RETURN
+ RETURN
The routine or
NULL if the routine not found.
*/
@@ -204,7 +204,7 @@ sp_head *sp_cache_lookup(sp_cache **cp, const Database_qualified_name *name)
SYNOPSIS
sp_cache_invalidate()
-
+
NOTE
This is called when a VIEW definition is created or modified (and in some
other contexts). We can't destroy sp_head objects here as one may modify
@@ -225,7 +225,7 @@ void sp_cache_invalidate()
@param[in] sp SP to remove.
@note This invalidates pointers to sp_head objects this thread
- uses. In practice that means 'dont call this function when
+ uses. In practice that means don't call this function when
inside SP'.
*/
@@ -264,7 +264,7 @@ sp_cache_enforce_limit(sp_cache *c, ulong upper_limit_for_elements)
}
/*************************************************************************
- Internal functions
+ Internal functions
*************************************************************************/
extern "C" uchar *hash_get_key_for_sp_head(const uchar *ptr, size_t *plen,
@@ -302,7 +302,7 @@ sp_cache::~sp_cache()
void
sp_cache::init()
{
- my_hash_init(&m_hashtable, system_charset_info, 0, 0, 0,
+ my_hash_init(key_memory_sp_cache, &m_hashtable, system_charset_info, 0, 0, 0,
hash_get_key_for_sp_head, hash_free_sp_head, 0);
}