diff options
author | kostja@bodhi.(none) <> | 2007-06-01 12:12:06 +0400 |
---|---|---|
committer | kostja@bodhi.(none) <> | 2007-06-01 12:12:06 +0400 |
commit | 16633169e4ab381126388f1bb2a014e9423c8f86 (patch) | |
tree | 2c2de88de3152746bd0ffaea698446ff1cede244 /sql/hash_filo.h | |
parent | 685293b98584b36c568bd6a4fa6ded69f6ce5844 (diff) | |
parent | 2c8f4f97910bec416fc9a375cf1c74be2ca395cc (diff) | |
download | mariadb-git-16633169e4ab381126388f1bb2a014e9423c8f86.tar.gz |
Merge bk-internal.mysql.com:/home/bk/mysql-5.1
into bodhi.(none):/opt/local/work/mysql-5.1-runtime
Diffstat (limited to 'sql/hash_filo.h')
-rw-r--r-- | sql/hash_filo.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sql/hash_filo.h b/sql/hash_filo.h index c25af67b572..ab13d338695 100644 --- a/sql/hash_filo.h +++ b/sql/hash_filo.h @@ -84,10 +84,10 @@ public: first_link=last_link=0; } - hash_filo_element *search(gptr key,uint length) + hash_filo_element *search(uchar* key, size_t length) { hash_filo_element *entry=(hash_filo_element*) - hash_search(&cache,(byte*) key,length); + hash_search(&cache,(uchar*) key,length); if (entry) { // Found; link it first if (entry != first_link) @@ -113,9 +113,9 @@ public: { hash_filo_element *tmp=last_link; last_link=last_link->prev_used; - hash_delete(&cache,(byte*) tmp); + hash_delete(&cache,(uchar*) tmp); } - if (my_hash_insert(&cache,(byte*) entry)) + if (my_hash_insert(&cache,(uchar*) entry)) { if (free_element) (*free_element)(entry); // This should never happen |