Commit 0bfec316 authored by monty@hundin.mysql.fi's avatar monty@hundin.mysql.fi
Browse files

Don't do signal() on windows (Causes instability problems)

Safer, a bit faster filesort.
Code changes to avoid calls to current_thd() (faster code).
Removed all compiler warnings from readline.
parent faa51dc2
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -180,7 +180,6 @@ gmon.out
heap/hp_test1
heap/hp_test2
include/my_config.h
include/my_global.h
include/mysql_version.h
include/widec.h
innobase/conftest.s1
+16 −8
Original line number Diff line number Diff line
@@ -129,7 +129,7 @@ distribution for that version.
@end menu
@node Introduction, Installing, Top, (dir)
@node Introduction, Installing, Top, Top
@chapter General Information About MySQL
@cindex overview
@@ -47395,21 +47395,26 @@ features, so that others can follow our development.
Our TODO section contains what we plan to have in 4.0. @xref{TODO MySQL 4.0}.
@cindex changes, version 4.0
@menu
* News-4.0.1::                  
* News-4.0.0::                  Changes in release 4.0.0
@end menu
@node News-4.0.1, News-4.0.0, News-4.0.x, News-4.0.x
@appendixsubsec Changes in release 4.0.1
@node News-4.0.0,  , News-4.0.x, News-4.0.x
@appendixsubsec Changes in release 4.0.0
@itemize @bullet
@item
Added boolean fulltext search code. It should be considered early alpha.
@end itemize
@cindex changes, version 4.0
@node News-4.0.0,  , News-4.0.1, News-4.0.x
@appendixsubsec Changes in release 4.0.0
@itemize @bullet
@item
Added boolean fulltext search code.
It should be considered early alpha.
@item
Added documentation for @code{libmysqld}, the embedded MySQL server
library.  Also added example programs (a @code{mysql} client and
@code{mysqltest} test program) which use @code{libmysqld}.
@@ -47420,6 +47425,9 @@ Removed @code{my_thread_init()} and @code{my_thread_end()}
from mysql_com.h, and added @code{mysql_thread_init()} and
@code{mysql_thread_end()} to mysql.h.
@item
Support for communication packets > 16M.  In 4.0.1 we will extend MyISAM to
be able to handle these.
@item
Secure connections (with SSL).
@item
Unsigned @code{BIGINT} constants now work. @code{MIN()} and @code{MAX()}
@@ -47436,7 +47444,7 @@ the database, which fixes a problem with InnoDB tables.
@item
Added support for @code{UNION}.
@item
@code(DELETE) and @code(UPDATE) can now operate on multiple tables.
@code{DELETE} can now operate on multiple tables.
@item
A new @code{HANDLER} interface to @code{MyISAM} tables.
@item
+1 −0
Original line number Diff line number Diff line
@@ -608,6 +608,7 @@ gptr alloc_root(MEM_ROOT *mem_root,unsigned int Size);
void free_root(MEM_ROOT *root, myf MyFLAGS);
void set_prealloc_root(MEM_ROOT *root, char *ptr);
char *strdup_root(MEM_ROOT *root,const char *str);
char *strmake_root(MEM_ROOT *root,const char *str,uint len);
char *memdup_root(MEM_ROOT *root,const char *str,uint len);
void load_defaults(const char *conf_file, const char **groups,
		   int *argc, char ***argv);
+2 −2
Original line number Diff line number Diff line
@@ -1310,7 +1310,7 @@ mysql_init(MYSQL *mysql)
     after we return if this is not the case.
  */
  mysql->rpl_pivot = 1; 
#if defined(SIGPIPE) && defined(THREAD)
#if defined(SIGPIPE) && defined(THREAD) && !defined(__WIN__)
  if (!((mysql)->client_flag & CLIENT_IGNORE_SIGPIPE))
    (void) signal(SIGPIPE,pipe_sig_handler);
#endif
@@ -1351,7 +1351,7 @@ static void mysql_once_init()
	mysql_unix_port = env;
    }
    mysql_debug(NullS);
#if defined(SIGPIPE) && !defined(THREAD)
#if defined(SIGPIPE) && !defined(THREAD) && !defined(__WIN__)
    (void) signal(SIGPIPE,SIG_IGN);
#endif
  }
+9 −2
Original line number Diff line number Diff line
@@ -195,10 +195,17 @@ void set_prealloc_root(MEM_ROOT *root, char *ptr)

char *strdup_root(MEM_ROOT *root,const char *str)
{
  uint len= (uint) strlen(str)+1;
  return strmake_root(root, str, strlen(str));
}

char *strmake_root(MEM_ROOT *root,const char *str, uint len)
{
  char *pos;
  if ((pos=alloc_root(root,len)))
  if ((pos=alloc_root(root,len+1)))
  {
    memcpy(pos,str,len);
    pos[len]=0;
  }
  return pos;
}

Loading