summaryrefslogtreecommitdiff
path: root/sql/sp_cache.cc
diff options
context:
space:
mode:
authorDavi Arnaut <Davi.Arnaut@Sun.COM>2009-11-25 11:09:12 -0200
committerDavi Arnaut <Davi.Arnaut@Sun.COM>2009-11-25 11:09:12 -0200
commit8022ff5cf5835d91278307cc1f92a48238084fbd (patch)
treef13519c84a430a7a4ace8577cfb5bd7f4f16ce63 /sql/sp_cache.cc
parent356b3df7430a46b3472682a827e357b3f7482257 (diff)
parentfb436977421923fff7b3158c57c430004b09bc2b (diff)
downloadmariadb-git-8022ff5cf5835d91278307cc1f92a48238084fbd.tar.gz
Automerge.
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)