Commit 6757a04e authored by jimw@mysql.com's avatar jimw@mysql.com

Merge mysql.com:/home/jimw/my/mysql-5.0-build

into mysql.com:/home/jimw/my/mysql-5.0-clean
parents ae52de49 2b5f9fad
...@@ -330,6 +330,10 @@ SOURCE=..\mysys\my_alloc.c ...@@ -330,6 +330,10 @@ SOURCE=..\mysys\my_alloc.c
# End Source File # End Source File
# Begin Source File # Begin Source File
SOURCE=..\mysys\my_chsize.c
# End Source File
# Begin Source File
SOURCE=..\mysys\my_compress.c SOURCE=..\mysys\my_compress.c
# ADD CPP /I "../zlib" # ADD CPP /I "../zlib"
# End Source File # End Source File
......
...@@ -303,6 +303,10 @@ SOURCE=..\mysys\my_alloc.c ...@@ -303,6 +303,10 @@ SOURCE=..\mysys\my_alloc.c
# End Source File # End Source File
# Begin Source File # Begin Source File
SOURCE=..\mysys\my_chsize.c
# End Source File
# Begin Source File
SOURCE=..\mysys\my_compress.c SOURCE=..\mysys\my_compress.c
# End Source File # End Source File
# Begin Source File # Begin Source File
...@@ -387,6 +391,10 @@ SOURCE=..\mysys\my_rename.c ...@@ -387,6 +391,10 @@ SOURCE=..\mysys\my_rename.c
# End Source File # End Source File
# Begin Source File # Begin Source File
SOURCE=..\mysys\my_seek.c
# End Source File
# Begin Source File
SOURCE=..\mysys\my_static.c SOURCE=..\mysys\my_static.c
# End Source File # End Source File
# Begin Source File # Begin Source File
......
...@@ -2244,7 +2244,6 @@ print_warnings() ...@@ -2244,7 +2244,6 @@ print_warnings()
char query[30]; char query[30];
MYSQL_RES *result; MYSQL_RES *result;
MYSQL_ROW cur; MYSQL_ROW cur;
MYSQL_FIELD *field;
/* Get the warnings */ /* Get the warnings */
strmov(query,"show warnings"); strmov(query,"show warnings");
......
...@@ -851,10 +851,13 @@ static void init_default_directories() ...@@ -851,10 +851,13 @@ static void init_default_directories()
if (GetWindowsDirectory(system_dir,sizeof(system_dir))) if (GetWindowsDirectory(system_dir,sizeof(system_dir)))
*ptr++= &system_dir; *ptr++= &system_dir;
#if defined(_MSC_VER) && (_MSC_VER >= 1300)
/* Only VC7 and up */
/* Only add shared system directory if different from default. */ /* Only add shared system directory if different from default. */
if (GetSystemWindowsDirectory(shared_system_dir,sizeof(shared_system_dir)) && if (GetSystemWindowsDirectory(shared_system_dir,sizeof(shared_system_dir)) &&
strcmp(system_dir, shared_system_dir)) strcmp(system_dir, shared_system_dir))
*ptr++= &shared_system_dir; *ptr++= &shared_system_dir;
#endif
#elif defined(__NETWARE__) #elif defined(__NETWARE__)
*ptr++= "sys:/etc/"; *ptr++= "sys:/etc/";
......
...@@ -315,7 +315,7 @@ system=`echo $system | sed -e 's/solaris2.\([0-9]*\)/solaris\1/g'` ...@@ -315,7 +315,7 @@ system=`echo $system | sed -e 's/solaris2.\([0-9]*\)/solaris\1/g'`
system=`echo $system | sed -e 's/sco3.2v\(.*\)/openserver\1/g'` system=`echo $system | sed -e 's/sco3.2v\(.*\)/openserver\1/g'`
# Use the override --machine if present # Use the override --machine if present
if [ -n $MACHINE ] ; then if [ -n "$MACHINE" ] ; then
machine=$MACHINE machine=$MACHINE
fi fi
......
...@@ -199,11 +199,10 @@ copy_dir_files() ...@@ -199,11 +199,10 @@ copy_dir_files()
print_debug "Creating directory '$arg'" print_debug "Creating directory '$arg'"
mkdir $BASE/$arg mkdir $BASE/$arg
fi fi
for i in *.c *.cpp *.h *.ih *.i *.ic *.asm *.def *.hpp *.dsp \ for i in *.c *.cpp *.h *.ih *.i *.ic *.asm *.def *.hpp *.dsp *.dsw \
README INSTALL* LICENSE *.inc *.test *.result \ README INSTALL* LICENSE AUTHORS NEWS ChangeLog \
*.pem Moscow_leap des_key_file *.dat *.000001 \ *.inc *.test *.result *.pem Moscow_leap des_key_file \
*.require *.opt *.dat *.000001 *.require *.opt
do do
if [ -f $i ] if [ -f $i ]
then then
...@@ -234,6 +233,7 @@ copy_dir_dirs() { ...@@ -234,6 +233,7 @@ copy_dir_dirs() {
find $arg -type d \ find $arg -type d \
-and -not -path \*SCCS\* \ -and -not -path \*SCCS\* \
-and -not -path \*.deps\* \ -and -not -path \*.deps\* \
-and -not -path \*.libs\* \
-and -not -path \*autom4te.cache -print -and -not -path \*autom4te.cache -print
)|( )|(
while read v while read v
...@@ -266,7 +266,7 @@ make -C $SOURCE/ndb windoze ...@@ -266,7 +266,7 @@ make -C $SOURCE/ndb windoze
# Input directories to be copied recursively # Input directories to be copied recursively
# #
for i in bdb innobase ndb for i in bdb innobase ndb extra/yassl
do do
copy_dir_dirs $i copy_dir_dirs $i
done done
...@@ -328,6 +328,8 @@ do ...@@ -328,6 +328,8 @@ do
$CP -R $i $BASE/$i $CP -R $i $BASE/$i
fi fi
fi fi
# But remove object files from destination
find $BASE/$i -type f -name \*.o | xargs rm -f
done done
# #
......
...@@ -573,9 +573,9 @@ int Show_instance_log_files::execute(struct st_net *net, ulong connection_id) ...@@ -573,9 +573,9 @@ int Show_instance_log_files::execute(struct st_net *net, ulong connection_id)
const char *value; const char *value;
} logs[]= } logs[]=
{ {
{"ERROR LOG", instance->options.logs[LOG_ERROR]}, {"ERROR LOG", instance->options.logs[IM_LOG_ERROR]},
{"GENERAL LOG", instance->options.logs[LOG_GENERAL]}, {"GENERAL LOG", instance->options.logs[IM_LOG_GENERAL]},
{"SLOW LOG", instance->options.logs[LOG_SLOW]}, {"SLOW LOG", instance->options.logs[IM_LOG_SLOW]},
{NULL, NULL} {NULL, NULL}
}; };
struct log_files_st *log_files; struct log_files_st *log_files;
......
...@@ -111,9 +111,9 @@ int Instance_options::fill_log_options() ...@@ -111,9 +111,9 @@ int Instance_options::fill_log_options()
const char *default_suffix; const char *default_suffix;
} logs_st[]= } logs_st[]=
{ {
{"--log-error", 11, &(logs[LOG_ERROR]), ".err"}, {"--log-error", 11, &(logs[IM_LOG_ERROR]), ".err"},
{"--log", 5, &(logs[LOG_GENERAL]), ".log"}, {"--log", 5, &(logs[IM_LOG_GENERAL]), ".log"},
{"--log-slow-queries", 18, &(logs[LOG_SLOW]), "-slow.log"}, {"--log-slow-queries", 18, &(logs[IM_LOG_SLOW]), "-slow.log"},
{NULL, 0, NULL, NULL} {NULL, 0, NULL, NULL}
}; };
struct log_files_st *log_files; struct log_files_st *log_files;
......
...@@ -262,13 +262,13 @@ Command *parse_command(Command_factory *factory, const char *text) ...@@ -262,13 +262,13 @@ Command *parse_command(Command_factory *factory, const char *text)
/* define a log type */ /* define a log type */
switch (tok3) { switch (tok3) {
case TOK_ERROR: case TOK_ERROR:
log_type= LOG_ERROR; log_type= IM_LOG_ERROR;
break; break;
case TOK_GENERAL: case TOK_GENERAL:
log_type= LOG_GENERAL; log_type= IM_LOG_GENERAL;
break; break;
case TOK_SLOW: case TOK_SLOW:
log_type= LOG_SLOW; log_type= IM_LOG_SLOW;
break; break;
default: default:
goto syntax_error; goto syntax_error;
......
...@@ -24,9 +24,9 @@ class Command_factory; ...@@ -24,9 +24,9 @@ class Command_factory;
enum Log_type enum Log_type
{ {
LOG_ERROR= 0, IM_LOG_ERROR= 0,
LOG_GENERAL, IM_LOG_GENERAL,
LOG_SLOW IM_LOG_SLOW
}; };
Command *parse_command(Command_factory *factory, const char *text); Command *parse_command(Command_factory *factory, const char *text);
......
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