Commit 577781b6 authored by unknown's avatar unknown

Merge bk-internal.mysql.com:/home/bk/mysql-4.1

into narttu.mysql.fi:/my/mysql-4.1
parents 161ca635 101cef26
...@@ -114,6 +114,7 @@ venu@myvenu.com ...@@ -114,6 +114,7 @@ venu@myvenu.com
venu@work.mysql.com venu@work.mysql.com
vva@eagle.mysql.r18.ru vva@eagle.mysql.r18.ru
vva@genie.(none) vva@genie.(none)
vva@mysql.r18.ru
walrus@kishkin.ru walrus@kishkin.ru
walrus@mysql.com walrus@mysql.com
wax@kishkin.ru wax@kishkin.ru
......
This diff is collapsed.
...@@ -164,7 +164,7 @@ then ...@@ -164,7 +164,7 @@ then
fi fi
# Create database directories mysql & test # Create database directories mysql & test
if test "$in_rpm" -eq 0 || "$windows" -eq 0
if test ! -d $ldata; then mkdir $ldata; chmod 700 $ldata ; fi if test ! -d $ldata; then mkdir $ldata; chmod 700 $ldata ; fi
if test ! -d $ldata/mysql; then mkdir $ldata/mysql; chmod 700 $ldata/mysql ; fi if test ! -d $ldata/mysql; then mkdir $ldata/mysql; chmod 700 $ldata/mysql ; fi
if test ! -d $ldata/test; then mkdir $ldata/test; chmod 700 $ldata/test ; fi if test ! -d $ldata/test; then mkdir $ldata/test; chmod 700 $ldata/test ; fi
......
...@@ -2281,7 +2281,9 @@ static void handle_connections_methods() ...@@ -2281,7 +2281,9 @@ static void handle_connections_methods()
#endif /* __NT__ */ #endif /* __NT__ */
if (have_tcpip && !opt_disable_networking) if (have_tcpip && !opt_disable_networking)
{ {
#ifdef __NT__
handler_count++; handler_count++;
#endif
if (pthread_create(&hThread,&connection_attrib, if (pthread_create(&hThread,&connection_attrib,
handle_connections_sockets, 0)) handle_connections_sockets, 0))
{ {
...@@ -2292,7 +2294,9 @@ static void handle_connections_methods() ...@@ -2292,7 +2294,9 @@ static void handle_connections_methods()
#ifdef HAVE_SMEM #ifdef HAVE_SMEM
if (opt_enable_shared_memory) if (opt_enable_shared_memory)
{ {
#ifdef __NT__
handler_count++; handler_count++;
#endif
if (pthread_create(&hThread,&connection_attrib, if (pthread_create(&hThread,&connection_attrib,
handle_connections_shared_memory, 0)) handle_connections_shared_memory, 0))
{ {
...@@ -3318,10 +3322,12 @@ Send number of connection to client ...@@ -3318,10 +3322,12 @@ Send number of connection to client
if (!handle_connect_file_map) CloseHandle(handle_connect_file_map); if (!handle_connect_file_map) CloseHandle(handle_connect_file_map);
if (!event_connect_answer) CloseHandle(event_connect_answer); if (!event_connect_answer) CloseHandle(event_connect_answer);
if (!event_connect_request) CloseHandle(event_connect_request); if (!event_connect_request) CloseHandle(event_connect_request);
#ifdef __NT__
pthread_mutex_lock(&LOCK_thread_count); pthread_mutex_lock(&LOCK_thread_count);
handler_count--; handler_count--;
pthread_mutex_unlock(&LOCK_thread_count); pthread_mutex_unlock(&LOCK_thread_count);
pthread_cond_signal(&COND_handler_count); pthread_cond_signal(&COND_handler_count);
#endif
DBUG_RETURN(0); DBUG_RETURN(0);
} }
#endif /* HAVE_SMEM */ #endif /* HAVE_SMEM */
......
...@@ -408,8 +408,14 @@ To make maintaining easier please: ...@@ -408,8 +408,14 @@ To make maintaining easier please:
<family>Unicode</family> <family>Unicode</family>
<description>UTF-8 Unicode</description> <description>UTF-8 Unicode</description>
<alias>utf-8</alias> <alias>utf-8</alias>
<collation name="utf8_general_ci" id="33" flag="primary"/> <collation name="utf8_general_ci" id="33">
<collation name="utf8_bin" id="83" flag="binary"/> <flag>primary</flag>
<flag>compiled</flag>
</collation>
<collation name="utf8_bin" id="83">
<flag>binary</flag>
<flag>compiled</flag>
</collation>
</charset> </charset>
<charset name="ucs2"> <charset name="ucs2">
......
...@@ -55,7 +55,7 @@ print_array16(FILE *f, const char *set, const char *name, uint16 *a, int n) ...@@ -55,7 +55,7 @@ print_array16(FILE *f, const char *set, const char *name, uint16 *a, int n)
{ {
int i; int i;
fprintf(f,"uchar %s_%s[] = {\n", name, set); fprintf(f,"uint16 %s_%s[] = {\n", name, set);
for (i=0 ;i<n ; i++) for (i=0 ;i<n ; i++)
{ {
...@@ -123,7 +123,8 @@ static my_bool simple_cs_is_full(CHARSET_INFO *cs) ...@@ -123,7 +123,8 @@ static my_bool simple_cs_is_full(CHARSET_INFO *cs)
{ {
return ((cs->csname && cs->tab_to_uni && cs->ctype && cs->to_upper && return ((cs->csname && cs->tab_to_uni && cs->ctype && cs->to_upper &&
cs->to_lower) && cs->to_lower) &&
(cs->number && cs->name && cs->sort_order)); (cs->number && cs->name &&
(cs->sort_order || (cs->state & MY_CS_BINSORT))));
} }
static int add_collation(CHARSET_INFO *cs) static int add_collation(CHARSET_INFO *cs)
...@@ -177,18 +178,23 @@ static int my_read_charset_file(const char *filename) ...@@ -177,18 +178,23 @@ static int my_read_charset_file(const char *filename)
void dispcset(FILE *f,CHARSET_INFO *cs) void dispcset(FILE *f,CHARSET_INFO *cs)
{ {
fprintf(f,"{\n"); fprintf(f,"{\n");
fprintf(f," %d,\n",cs->number); fprintf(f," %d,%d,%d,\n",cs->number,0,0);
fprintf(f," MY_CS_COMPILED,\n"); fprintf(f," MY_CS_COMPILED%s%s,\n",
cs->state & MY_CS_BINSORT ? "|MY_CS_BINSORT" : "",
cs->state & MY_CS_PRIMARY ? "|MY_CS_PRIMARY" : "");
if (cs->name) if (cs->name)
{ {
fprintf(f," \"%s\",\n",cs->name);
fprintf(f," \"%s\",\n",cs->csname); fprintf(f," \"%s\",\n",cs->csname);
fprintf(f," \"%s\",\n",cs->name);
fprintf(f," \"\",\n"); fprintf(f," \"\",\n");
fprintf(f," ctype_%s,\n",cs->name); fprintf(f," ctype_%s,\n",cs->name);
fprintf(f," to_lower_%s,\n",cs->name); fprintf(f," to_lower_%s,\n",cs->name);
fprintf(f," to_upper_%s,\n",cs->name); fprintf(f," to_upper_%s,\n",cs->name);
fprintf(f," sort_order_%s,\n",cs->name); if (cs->sort_order)
fprintf(f," sort_order_%s,\n",cs->name);
else
fprintf(f," NULL,\n");
fprintf(f," to_uni_%s,\n",cs->name); fprintf(f," to_uni_%s,\n",cs->name);
fprintf(f," from_uni_%s,\n",cs->name); fprintf(f," from_uni_%s,\n",cs->name);
} }
...@@ -205,37 +211,16 @@ void dispcset(FILE *f,CHARSET_INFO *cs) ...@@ -205,37 +211,16 @@ void dispcset(FILE *f,CHARSET_INFO *cs)
fprintf(f," NULL,\n"); fprintf(f," NULL,\n");
} }
fprintf(f," %d,\n",cs->strxfrm_multiply); fprintf(f," \"\",\n");
fprintf(f," my_strnncoll_simple,\n"); fprintf(f," \"\",\n");
fprintf(f," my_strnxfrm_simple,\n");
fprintf(f," my_like_range_simple,\n");
fprintf(f," my_wild_cmp_8bit,\n");
fprintf(f," %d,\n",cs->mbmaxlen);
fprintf(f," NULL,\n");
fprintf(f," NULL,\n");
fprintf(f," NULL,\n");
fprintf(f," my_mb_wc_8bit,\n");
fprintf(f," my_wc_mb_8bit,\n");
fprintf(f," my_caseup_str_8bit,\n");
fprintf(f," my_casedn_str_8bit,\n");
fprintf(f," my_caseup_8bit,\n");
fprintf(f," my_casedn_8bit,\n");
fprintf(f," my_tosort_8bit,\n");
fprintf(f," my_strcasecmp_8bit,\n");
fprintf(f," my_strncasecmp_8bit,\n");
fprintf(f," my_hash_caseup_simple,\n");
fprintf(f," my_hash_sort_simple,\n");
fprintf(f," 0,\n"); fprintf(f," 0,\n");
fprintf(f," my_snprintf_8bit,\n"); fprintf(f," 0,\n");
fprintf(f," my_long10_to_str_8bit,\n"); fprintf(f," 0,\n");
fprintf(f," my_longlong10_to_str_8bit,\n"); fprintf(f," &my_charset_8bit_handler,\n");
fprintf(f," my_fill_8bit,\n"); if (cs->state & MY_CS_BINSORT)
fprintf(f," my_strntol_8bit,\n"); fprintf(f," &my_collation_bin_handler,\n");
fprintf(f," my_strntoul_8bit,\n"); else
fprintf(f," my_strntoll_8bit,\n"); fprintf(f," &my_collation_8bit_simple_ci_handler,\n");
fprintf(f," my_strntoull_8bit,\n");
fprintf(f," my_strntod_8bit,\n");
fprintf(f," my_scan_8bit\n");
fprintf(f,"}\n"); fprintf(f,"}\n");
} }
...@@ -262,9 +247,9 @@ main(int argc, char **argv __attribute__((unused))) ...@@ -262,9 +247,9 @@ main(int argc, char **argv __attribute__((unused)))
for (cs=all_charsets; cs < all_charsets+256; cs++) for (cs=all_charsets; cs < all_charsets+256; cs++)
{ {
if (cs->number) if (cs->number && !(cs->state & MY_CS_COMPILED))
{ {
if ( (!simple_cs_is_full(cs)) && (cs->csname) ) if ( (!simple_cs_is_full(cs)) && (cs->csname))
{ {
sprintf(filename,"%s/%s.xml",argv[1],cs->csname); sprintf(filename,"%s/%s.xml",argv[1],cs->csname);
my_read_charset_file(filename); my_read_charset_file(filename);
...@@ -280,7 +265,8 @@ main(int argc, char **argv __attribute__((unused))) ...@@ -280,7 +265,8 @@ main(int argc, char **argv __attribute__((unused)))
print_array(f, cs->name, "ctype", cs->ctype, MY_CS_CTYPE_TABLE_SIZE); print_array(f, cs->name, "ctype", cs->ctype, MY_CS_CTYPE_TABLE_SIZE);
print_array(f, cs->name, "to_lower", cs->to_lower, MY_CS_TO_LOWER_TABLE_SIZE); print_array(f, cs->name, "to_lower", cs->to_lower, MY_CS_TO_LOWER_TABLE_SIZE);
print_array(f, cs->name, "to_upper", cs->to_upper, MY_CS_TO_UPPER_TABLE_SIZE); print_array(f, cs->name, "to_upper", cs->to_upper, MY_CS_TO_UPPER_TABLE_SIZE);
print_array(f, cs->name, "sort_order", cs->sort_order, MY_CS_SORT_ORDER_TABLE_SIZE); if (cs->sort_order)
print_array(f, cs->name, "sort_order", cs->sort_order, MY_CS_SORT_ORDER_TABLE_SIZE);
print_array16(f, cs->name, "to_uni", cs->tab_to_uni, MY_CS_TO_UNI_TABLE_SIZE); print_array16(f, cs->name, "to_uni", cs->tab_to_uni, MY_CS_TO_UNI_TABLE_SIZE);
fprintf(f,"#endif\n"); fprintf(f,"#endif\n");
fprintf(f,"\n"); fprintf(f,"\n");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment