diff options
author | bar@gw.udmsearch.izhnet.ru <> | 2002-03-14 21:44:42 +0400 |
---|---|---|
committer | bar@gw.udmsearch.izhnet.ru <> | 2002-03-14 21:44:42 +0400 |
commit | c60a29f0ee220277844264a20fbf8859203fabea (patch) | |
tree | d80812bbab290e762f4a058cded480022c09d0f3 /tools | |
parent | f8a5452877ada07efadc3e3180b619f780faec78 (diff) | |
download | mariadb-git-c60a29f0ee220277844264a20fbf8859203fabea.tar.gz |
Hash now supports several charsets
Diffstat (limited to 'tools')
-rw-r--r-- | tools/mysqlmanager.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tools/mysqlmanager.c b/tools/mysqlmanager.c index 9dbf433d8a1..536b76a1351 100644 --- a/tools/mysqlmanager.c +++ b/tools/mysqlmanager.c @@ -1655,7 +1655,8 @@ static void init_user_hash() FILE* f; char buf[80]; int line_num=1; - if (hash_init(&user_hash,1024,0,0,get_user_key,manager_user_free,MYF(0))) + if (hash_init(&user_hash,system_charset_info,1024,0,0, + get_user_key,manager_user_free,MYF(0))) die("Could not initialize user hash"); if (!(f=fopen(manager_pw_file,"r"))) die("Could not open password file '%s'", manager_pw_file); @@ -1693,7 +1694,8 @@ static void init_pid_file() static void init_globals() { pthread_attr_t thr_attr; - if (hash_init(&exec_hash,1024,0,0,get_exec_key,manager_exec_free,MYF(0))) + if (hash_init(&exec_hash,system_charset_info,1024,0,0, + get_exec_key,manager_exec_free,MYF(0))) die("Exec hash initialization failed"); if (!one_thread) { |