summaryrefslogtreecommitdiff
path: root/sql/hash_filo.h
diff options
context:
space:
mode:
authorunknown <bar@bar.mysql.r18.ru>2003-03-07 12:21:32 +0400
committerunknown <bar@bar.mysql.r18.ru>2003-03-07 12:21:32 +0400
commit11da9dede60e52f2178757e3b57c1c97412eda1c (patch)
tree3247730070624b547ff4ab3f2ea2e00169b965d2 /sql/hash_filo.h
parent8d9d12d18207d880b4fde3bda5e4f1bd84f25b94 (diff)
downloadmariadb-git-11da9dede60e52f2178757e3b57c1c97412eda1c.tar.gz
sql_acl.cc, item.h:
use of new argument sql_analyse.h: macros from mysql_priv.h. Should be deleted soon. mysql_priv.h: _default_charset_info has been removed item_cmpfunc.h: Use cmp_charset hostname.cc, hash_filo.h: Move charset to constructor argument sql/hash_filo.h: Move charset to constructor argument sql/hostname.cc: Move charset to constructor argument sql/item_cmpfunc.h: Use cmp_charset sql/mysql_priv.h: _default_charset_info has been removed sql/sql_analyse.h: macros from mysql_priv.h. Should be deleted soon. sql/item.h: use of new argument sql/sql_acl.cc: use of new argument
Diffstat (limited to 'sql/hash_filo.h')
-rw-r--r--sql/hash_filo.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/sql/hash_filo.h b/sql/hash_filo.h
index f7384cc6e32..92cd2658967 100644
--- a/sql/hash_filo.h
+++ b/sql/hash_filo.h
@@ -42,6 +42,7 @@ class hash_filo
const hash_get_key get_key;
hash_free_key free_element;
bool init;
+ CHARSET_INFO *hash_charset;
hash_filo_element *first_link,*last_link;
public:
@@ -49,9 +50,11 @@ public:
HASH cache;
hash_filo(uint size_arg, uint key_offset_arg , uint key_length_arg,
- hash_get_key get_key_arg, hash_free_key free_element_arg)
+ hash_get_key get_key_arg, hash_free_key free_element_arg,
+ CHARSET_INFO *hash_charset_arg)
:size(size_arg), key_offset(key_offset_arg), key_length(key_length_arg),
- get_key(get_key_arg), free_element(free_element_arg),init(0)
+ get_key(get_key_arg), free_element(free_element_arg),init(0),
+ hash_charset(hash_charset_arg)
{
bzero((char*) &cache,sizeof(cache));
}
@@ -75,7 +78,7 @@ public:
if (!locked)
(void) pthread_mutex_lock(&lock);
(void) hash_free(&cache);
- (void) hash_init(&cache,system_charset_info,size,key_offset,
+ (void) hash_init(&cache,hash_charset,size,key_offset,
key_length, get_key, free_element,0);
if (!locked)
(void) pthread_mutex_unlock(&lock);