summaryrefslogtreecommitdiff
path: root/sql/sp_cache.cc
diff options
context:
space:
mode:
authorMarc Alff <marc.alff@sun.com>2009-12-16 15:48:55 -0700
committerMarc Alff <marc.alff@sun.com>2009-12-16 15:48:55 -0700
commit0d99234dba5dc64bc4f369361f8fc0a669b8dff3 (patch)
treebe48bf75b22c376754b743856f13a6f42139de8b /sql/sp_cache.cc
parent0531f85e16223e30071e7e8ce40695fda3f2c235 (diff)
parent5cd3dffebb2abd5778e819ac57001e0d963484d8 (diff)
downloadmariadb-git-0d99234dba5dc64bc4f369361f8fc0a669b8dff3.tar.gz
Merge mysql-next-mr (revno 2942) --> mysql-next-mr-marc
Diffstat (limited to 'sql/sp_cache.cc')
-rw-r--r--sql/sp_cache.cc12
1 files changed, 9 insertions, 3 deletions
diff --git a/sql/sp_cache.cc b/sql/sp_cache.cc
index e1f2bb1c95b..e8604baf466 100644
--- a/sql/sp_cache.cc
+++ b/sql/sp_cache.cc
@@ -36,10 +36,16 @@ public:
sp_cache();
~sp_cache();
- inline void insert(sp_head *sp)
+ /**
+ Inserts a sp_head object into a hash table.
+
+ @returns Success status
+ @return TRUE Failure
+ @return FALSE Success
+ */
+ inline bool insert(sp_head *sp)
{
- /* TODO: why don't we check return value? */
- my_hash_insert(&m_hashtable, (const uchar *)sp);
+ return my_hash_insert(&m_hashtable, (const uchar *)sp);
}
inline sp_head *lookup(char *name, uint namelen)