
Public Member Functions | |
| sp_cache () | |
| ~sp_cache () | |
| void | insert (sp_head *sp) |
| sp_head * | lookup (char *name, uint namelen) |
| void | remove_all () |
Public Attributes | |
| ulong | version |
Private Member Functions | |
| void | init () |
| void | cleanup () |
Private Attributes | |
| HASH | m_hashtable |
Definition at line 32 of file sp_cache.cc.
| sp_cache::sp_cache | ( | ) |
Definition at line 235 of file sp_cache.cc.
References init().
00236 { 00237 init(); 00238 }
Here is the call graph for this function:

| sp_cache::~sp_cache | ( | ) |
Definition at line 241 of file sp_cache.cc.
References hash_free(), and m_hashtable.
00242 { 00243 hash_free(&m_hashtable); 00244 }
Here is the call graph for this function:

| void sp_cache::cleanup | ( | ) | [private] |
Definition at line 257 of file sp_cache.cc.
References hash_free(), and m_hashtable.
Referenced by remove_all().
00258 { 00259 hash_free(&m_hashtable); 00260 }
Here is the call graph for this function:

Here is the caller graph for this function:

| void sp_cache::init | ( | ) | [private] |
Definition at line 248 of file sp_cache.cc.
References hash_free_sp_head(), hash_get_key_for_sp_head(), hash_init, m_hashtable, system_charset_info, and version.
Referenced by remove_all(), and sp_cache().
00249 { 00250 hash_init(&m_hashtable, system_charset_info, 0, 0, 0, 00251 hash_get_key_for_sp_head, hash_free_sp_head, 0); 00252 version= 0; 00253 }
Here is the call graph for this function:

Here is the caller graph for this function:

| void sp_cache::insert | ( | sp_head * | sp | ) | [inline] |
Definition at line 40 of file sp_cache.cc.
References m_hashtable, and my_hash_insert().
Referenced by sp_cache_insert().
00041 { 00042 /* TODO: why don't we check return value? */ 00043 my_hash_insert(&m_hashtable, (const byte *)sp); 00044 }
Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 46 of file sp_cache.cc.
References hash_search(), and m_hashtable.
Referenced by sp_cache_lookup().
00047 { 00048 return (sp_head *)hash_search(&m_hashtable, (const byte *)name, namelen); 00049 }
Here is the call graph for this function:

Here is the caller graph for this function:

| void sp_cache::remove_all | ( | ) | [inline] |
Definition at line 64 of file sp_cache.cc.
References cleanup(), and init().
Referenced by sp_cache_flush_obsolete().
Here is the call graph for this function:

Here is the caller graph for this function:

HASH sp_cache::m_hashtable [private] |
Definition at line 75 of file sp_cache.cc.
Referenced by cleanup(), init(), insert(), lookup(), and ~sp_cache().
Definition at line 35 of file sp_cache.cc.
Referenced by init(), sp_cache_flush_obsolete(), and sp_cache_insert().
1.4.7

