summaryrefslogtreecommitdiff
path: root/sql/sp_cache.cc
diff options
context:
space:
mode:
authorAlfranio Correia <alfranio.correia@sun.com>2009-12-17 00:47:39 +0000
committerAlfranio Correia <alfranio.correia@sun.com>2009-12-17 00:47:39 +0000
commite852131f048df0c48d6779c40b23a347fbccc107 (patch)
treee7d2073fc03c4d483a2006572c2db6a9fdee7ec1 /sql/sp_cache.cc
parent9d382997e8d450dc9e50627d64a2b4a212033dab (diff)
parent9a51ad2c541d6fe93b82a09d334278dd1170e780 (diff)
downloadmariadb-git-e852131f048df0c48d6779c40b23a347fbccc107.tar.gz
merge mysql-5.1-rep+2 --> mysql-5.1-rep+2-delivery1
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 64898915b7e..b8209a373a2 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)