diff options
author | Marc Alff <marc.alff@sun.com> | 2009-12-16 15:48:55 -0700 |
---|---|---|
committer | Marc Alff <marc.alff@sun.com> | 2009-12-16 15:48:55 -0700 |
commit | 0d99234dba5dc64bc4f369361f8fc0a669b8dff3 (patch) | |
tree | be48bf75b22c376754b743856f13a6f42139de8b /sql/sp_cache.cc | |
parent | 0531f85e16223e30071e7e8ce40695fda3f2c235 (diff) | |
parent | 5cd3dffebb2abd5778e819ac57001e0d963484d8 (diff) | |
download | mariadb-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.cc | 12 |
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) |