diff options
author | unknown <bar@bar.mysql.r18.ru> | 2003-01-04 15:21:52 +0400 |
---|---|---|
committer | unknown <bar@bar.mysql.r18.ru> | 2003-01-04 15:21:52 +0400 |
commit | f67891c24422a223a50a2477883e587c520057ad (patch) | |
tree | bf031462f1042f3e8ce1018c11ecb48ec364e3f9 /mysys/charset.c | |
parent | f5847785365ce6b68c3afa7f77a5b2f33cfb94dc (diff) | |
download | mariadb-git-f67891c24422a223a50a2477883e587c520057ad.tar.gz |
charset.c:
this function will be used to load both Index and a named charset, so let's add a new argument to pass file name
mysys/charset.c:
this function will be used to load both Index and a named charset, so let's add a new argument to pass file name
Diffstat (limited to 'mysys/charset.c')
-rw-r--r-- | mysys/charset.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/mysys/charset.c b/mysys/charset.c index 37dd484c58e..f590ee2a49e 100644 --- a/mysys/charset.c +++ b/mysys/charset.c @@ -226,7 +226,7 @@ static int cs_value(MY_XML_PARSER *st,const char *attr, uint len) return MY_XML_OK; } -static my_bool read_charset_index(myf myflags) +static my_bool read_charset_index(const char *filename, myf myflags) { char *buf; int fd; @@ -237,7 +237,7 @@ static my_bool read_charset_index(myf myflags) if (! (buf = (char *)my_malloc(MAX_BUF,myflags))) return FALSE; - strmov(get_charsets_dir(buf),MY_CHARSET_INDEX); + strmov(get_charsets_dir(buf),filename); if ((fd=my_open(buf,O_RDONLY,myflags)) < 0) { @@ -313,7 +313,7 @@ static my_bool init_available_charsets(myf myflags) if (*cs) set_max_sort_char(*cs); } - error = read_charset_index(myflags); + error = read_charset_index(MY_CHARSET_INDEX,myflags); charset_initialized=1; pthread_mutex_unlock(&THR_LOCK_charset); } |