diff options
author | Mikael Ronstrom <mikael@mysql.com> | 2009-12-16 09:49:16 +0100 |
---|---|---|
committer | Mikael Ronstrom <mikael@mysql.com> | 2009-12-16 09:49:16 +0100 |
commit | a2a4c70c1bfd077a1281604bdd8368dd32ab6e83 (patch) | |
tree | b2d3e2437e6035344c65d7b33d31455bc8ebfb28 /sql/sp_cache.cc | |
parent | a893a64e2342eb4d179db46c5f85d4c86c45a4ed (diff) | |
parent | 5cd3dffebb2abd5778e819ac57001e0d963484d8 (diff) | |
download | mariadb-git-a2a4c70c1bfd077a1281604bdd8368dd32ab6e83.tar.gz |
Merge to latest mysql-next-mr
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 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) |