summaryrefslogtreecommitdiff
path: root/sql/sp_cache.cc
diff options
context:
space:
mode:
authorMikael Ronstrom <mikael@mysql.com>2009-12-16 09:49:16 +0100
committerMikael Ronstrom <mikael@mysql.com>2009-12-16 09:49:16 +0100
commita2a4c70c1bfd077a1281604bdd8368dd32ab6e83 (patch)
treeb2d3e2437e6035344c65d7b33d31455bc8ebfb28 /sql/sp_cache.cc
parenta893a64e2342eb4d179db46c5f85d4c86c45a4ed (diff)
parent5cd3dffebb2abd5778e819ac57001e0d963484d8 (diff)
downloadmariadb-git-a2a4c70c1bfd077a1281604bdd8368dd32ab6e83.tar.gz
Merge to latest mysql-next-mr
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 d9a23d2be4e..0da5e44b846 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)