summaryrefslogtreecommitdiff
path: root/sql/sp_cache.cc
diff options
context:
space:
mode:
authorMichael Widenius <monty@askmonty.org>2010-01-15 17:27:55 +0200
committerMichael Widenius <monty@askmonty.org>2010-01-15 17:27:55 +0200
commitd8ecbbe63471f958aa70443545b63d88d2db0230 (patch)
tree32a6f432080d9125b3619f8935eb5b1de00e861d /sql/sp_cache.cc
parentd121e6630519a66eec7c953ee0eae623f592ce87 (diff)
parent6d69089845ed4c50df0ca8136a2cdacb8f2e1380 (diff)
downloadmariadb-git-d8ecbbe63471f958aa70443545b63d88d2db0230.tar.gz
Merge with MySQL 5.1.42
- Marked a couple of tests with --big - Fixed xtradb/handler/ha_innodb.cc to call explain_filename() storage/xtradb/handler/ha_innodb.cc: Call explain_filename() to get proper names for partitioned tables
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 13b3e771a91..b60d82c9698 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)