Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
f472cec1
Commit
f472cec1
authored
Jan 06, 2005
by
serg@sergbook.mysql.com
Browse files
Options
Browse Files
Download
Plain Diff
merged
parents
15133e70
03f64a63
Changes
15
Show whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
184 additions
and
79 deletions
+184
-79
.bzrignore
.bzrignore
+54
-0
BUILD/compile-dist
BUILD/compile-dist
+1
-0
VC++Files/client/mysqldump.dsp
VC++Files/client/mysqldump.dsp
+6
-6
VC++Files/client/mysqltest.dsp
VC++Files/client/mysqltest.dsp
+8
-8
VC++Files/mysql-test/mysql_test_run_new.dsp
VC++Files/mysql-test/mysql_test_run_new.dsp
+2
-2
include/my_pthread.h
include/my_pthread.h
+2
-0
innobase/os/os0file.c
innobase/os/os0file.c
+15
-1
mysql-test/my_manage.c
mysql-test/my_manage.c
+9
-1
mysql-test/mysql_test_run_new.c
mysql-test/mysql_test_run_new.c
+77
-53
mysys/mf_keycaches.c
mysys/mf_keycaches.c
+1
-1
mysys/my_sleep.c
mysys/my_sleep.c
+2
-0
scripts/mysqld_safe.sh
scripts/mysqld_safe.sh
+2
-2
sql-bench/crash-me.sh
sql-bench/crash-me.sh
+1
-1
sql-common/client.c
sql-common/client.c
+4
-3
sql/sql_parse.cc
sql/sql_parse.cc
+0
-1
No files found.
.bzrignore
View file @
f472cec1
...
@@ -549,13 +549,67 @@ mysql-max-4.0.2-alpha-pc-linux-gnu-i686.tar.gz
...
@@ -549,13 +549,67 @@ mysql-max-4.0.2-alpha-pc-linux-gnu-i686.tar.gz
mysql-test/gmon.out
mysql-test/gmon.out
mysql-test/install_test_db
mysql-test/install_test_db
mysql-test/mysql-test-run
mysql-test/mysql-test-run
mysql-test/mysql-test-run.log
mysql-test/mysql_test_run_new
mysql-test/mysql_test_run_new
mysql-test/ndb/ndbcluster
mysql-test/ndb/ndbcluster
mysql-test/r/*.reject
mysql-test/r/*.reject
mysql-test/r/alter_table.err
mysql-test/r/archive.err
mysql-test/r/bdb-alter-table-1.err
mysql-test/r/bdb-alter-table-2.err
mysql-test/r/bdb-crash.err
mysql-test/r/bdb-deadlock.err
mysql-test/r/bdb.err
mysql-test/r/bdb_cache.err
mysql-test/r/client_test.err
mysql-test/r/csv.err
mysql-test/r/ctype_ucs.err
mysql-test/r/derived.err
mysql-test/r/exampledb.err
mysql-test/r/func_encrypt.err
mysql-test/r/index_merge_load.result
mysql-test/r/index_merge_load.result
mysql-test/r/isam.err
mysql-test/r/lowercase_table2.err
mysql-test/r/multi_update.err
mysql-test/r/mysql_protocols.err
mysql-test/r/mysqlbinlog.err
mysql-test/r/mysqlbinlog2.err
mysql-test/r/mysqldump.err
mysql-test/r/mysqltest.err
mysql-test/r/ndb_alter_table.err
mysql-test/r/ndb_autodiscover.err
mysql-test/r/ndb_autodiscover2.err
mysql-test/r/ndb_basic.err
mysql-test/r/ndb_blob.err
mysql-test/r/ndb_cache.err
mysql-test/r/ndb_charset.err
mysql-test/r/ndb_index.err
mysql-test/r/ndb_index_ordered.err
mysql-test/r/ndb_index_unique.err
mysql-test/r/ndb_insert.err
mysql-test/r/ndb_limit.err
mysql-test/r/ndb_lock.err
mysql-test/r/ndb_minmax.err
mysql-test/r/ndb_replace.err
mysql-test/r/ndb_subquery.err
mysql-test/r/ndb_transaction.err
mysql-test/r/ndb_truncate.err
mysql-test/r/ndb_types.err
mysql-test/r/ndb_update.err
mysql-test/r/openssl_1.err
mysql-test/r/ps_1general.err
mysql-test/r/ps_6bdb.err
mysql-test/r/ps_7ndb.err
mysql-test/r/query_cache.err
mysql-test/r/query_cache_merge.err
mysql-test/r/raid.err
mysql-test/r/repair.err
mysql-test/r/replace.err
mysql-test/r/rpl000001.err
mysql-test/r/rpl000001.eval
mysql-test/r/rpl000001.eval
mysql-test/r/rpl000002.eval
mysql-test/r/rpl000002.eval
mysql-test/r/rpl000014.eval
mysql-test/r/rpl000014.eval
mysql-test/r/rpl000015.err
mysql-test/r/rpl000015.eval
mysql-test/r/rpl000015.eval
mysql-test/r/rpl000016.eval
mysql-test/r/rpl000016.eval
mysql-test/r/rpl_log.eval
mysql-test/r/rpl_log.eval
...
...
BUILD/compile-dist
View file @
f472cec1
...
@@ -43,5 +43,6 @@ fi
...
@@ -43,5 +43,6 @@ fi
--with-berkeley-db
\
--with-berkeley-db
\
--with-innodb
\
--with-innodb
\
--enable-thread-safe-client
\
--enable-thread-safe-client
\
--with-extra-charsets
=
complex
\
--with-ndbcluster
--with-ndbcluster
make
make
VC++Files/client/mysqldump.dsp
View file @
f472cec1
...
@@ -51,8 +51,8 @@ BSC32=bscmake.exe
...
@@ -51,8 +51,8 @@ BSC32=bscmake.exe
# ADD BASE BSC32 /nologo
# ADD BASE BSC32 /nologo
# ADD BSC32 /nologo
# ADD BSC32 /nologo
LINK32=xilink6.exe
LINK32=xilink6.exe
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib
mysys.lib
/nologo /subsystem:console /machine:I386
# ADD LINK32 mysqlclient.lib wsock32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386 /out:"../client_release/mysqldump.exe" /libpath:"..\lib_release\\"
# ADD LINK32 mysqlclient.lib wsock32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib
mysys.lib
/nologo /subsystem:console /machine:I386 /out:"../client_release/mysqldump.exe" /libpath:"..\lib_release\\"
!ELSEIF "$(CFG)" == "mysqldump - Win32 Debug"
!ELSEIF "$(CFG)" == "mysqldump - Win32 Debug"
...
@@ -76,8 +76,8 @@ BSC32=bscmake.exe
...
@@ -76,8 +76,8 @@ BSC32=bscmake.exe
# ADD BASE BSC32 /nologo
# ADD BASE BSC32 /nologo
# ADD BSC32 /nologo
# ADD BSC32 /nologo
LINK32=xilink6.exe
LINK32=xilink6.exe
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib
mysys.lib
/nologo /subsystem:console /debug /machine:I386 /pdbtype:sept
# ADD LINK32 mysqlclient.lib wsock32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /incremental:no /debug /machine:I386 /out:"../client_debug/mysqldump.exe" /pdbtype:sept /libpath:"..\lib_debug\\"
# ADD LINK32 mysqlclient.lib wsock32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib
mysys.lib
/nologo /subsystem:console /incremental:no /debug /machine:I386 /out:"../client_debug/mysqldump.exe" /pdbtype:sept /libpath:"..\lib_debug\\"
!ELSEIF "$(CFG)" == "mysqldump - Win32 classic"
!ELSEIF "$(CFG)" == "mysqldump - Win32 classic"
...
@@ -103,8 +103,8 @@ BSC32=bscmake.exe
...
@@ -103,8 +103,8 @@ BSC32=bscmake.exe
# ADD BASE BSC32 /nologo
# ADD BASE BSC32 /nologo
# ADD BSC32 /nologo
# ADD BSC32 /nologo
LINK32=xilink6.exe
LINK32=xilink6.exe
# ADD BASE LINK32 mysqlclient.lib wsock32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386 /out:"../client_release/mysqldump.exe" /libpath:"..\lib_release\\"
# ADD BASE LINK32 mysqlclient.lib wsock32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib
mysys.lib
/nologo /subsystem:console /machine:I386 /out:"../client_release/mysqldump.exe" /libpath:"..\lib_release\\"
# ADD LINK32 mysqlclient.lib wsock32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386 /out:"../client_classic/mysqldump.exe" /libpath:"..\lib_release\\"
# ADD LINK32 mysqlclient.lib wsock32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib
mysys.lib
/nologo /subsystem:console /machine:I386 /out:"../client_classic/mysqldump.exe" /libpath:"..\lib_release\\"
!ENDIF
!ENDIF
...
...
VC++Files/client/mysqltest.dsp
View file @
f472cec1
...
@@ -67,8 +67,8 @@ LINK32=link.exe
...
@@ -67,8 +67,8 @@ LINK32=link.exe
# PROP Output_Dir ".\classic"
# PROP Output_Dir ".\classic"
# PROP Intermediate_Dir ".\classic"
# PROP Intermediate_Dir ".\classic"
# PROP Target_Dir ""
# PROP Target_Dir ""
# ADD BASE CPP /nologo /MT /I "../include" /I "../
" /W3 /Ob1 /G6 /D "_CONSOLE" /D "_WINDOWS" /D "LICENSE=Commercial" /D "DBUG_OFF" /D "NDEBUG" /D "_MBCS" /GF /Gy /Fp".\classic/mysqltest.pch" /Fo".\classic/" /Fd".\classic/" /c /GX
# ADD BASE CPP /nologo /MT /I "../include" /I "../
regex" /I "../" /W3 /Ob1 /G6 /D "_CONSOLE" /D "_WINDOWS" /D "LICENSE=Commercial" /D "DBUG_OFF" /D "NDEBUG" /D "_MBCS" /GF /Gy /Fp".\classic/mysqltest.pch" /Fo".\classic/" /Fd".\classic/" /c /GX
# ADD CPP /nologo /MT /I "../include" /I "../
" /W3 /Ob1 /G6 /D "_CONSOLE" /D "_WINDOWS" /D "LICENSE=Commercial" /D "DBUG_OFF" /D "NDEBUG" /D "_MBCS" /GF /Gy /Fp".\classic/mysqltest.pch" /Fo".\classic/" /Fd".\classic/" /c /GX
# ADD CPP /nologo /MT /I "../include" /I "../
regex" /I "../" /W3 /Ob1 /G6 /D "_CONSOLE" /D "_WINDOWS" /D "LICENSE=Commercial" /D "DBUG_OFF" /D "NDEBUG" /D "_MBCS" /GF /Gy /Fp".\classic/mysqltest.pch" /Fo".\classic/" /Fd".\classic/" /c /GX
# ADD BASE MTL /nologo /tlb".\classic\mysqltest.tlb" /win32
# ADD BASE MTL /nologo /tlb".\classic\mysqltest.tlb" /win32
# ADD MTL /nologo /tlb".\classic\mysqltest.tlb" /win32
# ADD MTL /nologo /tlb".\classic\mysqltest.tlb" /win32
# ADD BASE RSC /l 1033 /d "NDEBUG"
# ADD BASE RSC /l 1033 /d "NDEBUG"
...
@@ -77,8 +77,8 @@ BSC32=bscmake.exe
...
@@ -77,8 +77,8 @@ BSC32=bscmake.exe
# ADD BASE BSC32 /nologo
# ADD BASE BSC32 /nologo
# ADD BSC32 /nologo
# ADD BSC32 /nologo
LINK32=link.exe
LINK32=link.exe
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib odbc32.lib odbccp32.lib mysqlclient.lib wsock32.lib /nologo /out:"..\client_classic\mysqltest.exe" /incremental:no /libpath:"..\lib_release\" /pdb:".\classic\mysqltest.pdb" /pdbtype:sept /subsystem:console /MACHINE:I386
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib odbc32.lib odbccp32.lib mysqlclient.lib wsock32.lib
mysys.lib regex.lib
/nologo /out:"..\client_classic\mysqltest.exe" /incremental:no /libpath:"..\lib_release\" /pdb:".\classic\mysqltest.pdb" /pdbtype:sept /subsystem:console /MACHINE:I386
# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib odbc32.lib odbccp32.lib mysqlclient.lib wsock32.lib /nologo /out:"..\client_classic\mysqltest.exe" /incremental:no /libpath:"..\lib_release\" /pdb:".\classic\mysqltest.pdb" /pdbtype:sept /subsystem:console /MACHINE:I386
# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib odbc32.lib odbccp32.lib mysqlclient.lib wsock32.lib
mysys.lib regex.lib
/nologo /out:"..\client_classic\mysqltest.exe" /incremental:no /libpath:"..\lib_release\" /pdb:".\classic\mysqltest.pdb" /pdbtype:sept /subsystem:console /MACHINE:I386
!ELSEIF "$(CFG)" == "mysqltest - Win32 Release"
!ELSEIF "$(CFG)" == "mysqltest - Win32 Release"
...
@@ -92,8 +92,8 @@ LINK32=link.exe
...
@@ -92,8 +92,8 @@ LINK32=link.exe
# PROP Output_Dir ".\release"
# PROP Output_Dir ".\release"
# PROP Intermediate_Dir ".\release"
# PROP Intermediate_Dir ".\release"
# PROP Target_Dir ""
# PROP Target_Dir ""
# ADD BASE CPP /nologo /MT /I "../include" /I "../
" /W3 /Ob1 /G6 /D "DBUG_OFF" /D "_CONSOLE" /D "_WINDOWS" /D "NDEBUG" /D "_MBCS" /GF /Gy /Fp".\release/mysqltest.pch" /Fo".\release/" /Fd".\release/" /c /GX
# ADD BASE CPP /nologo /MT /I "../include" /I "../
regex" /I "../" /W3 /Ob1 /G6 /D "DBUG_OFF" /D "_CONSOLE" /D "_WINDOWS" /D "NDEBUG" /D "_MBCS" /GF /Gy /Fp".\release/mysqltest.pch" /Fo".\release/" /Fd".\release/" /c /GX
# ADD CPP /nologo /MT /I "../include" /I "../
" /W3 /Ob1 /G6 /D "DBUG_OFF" /D "_CONSOLE" /D "_WINDOWS" /D "NDEBUG" /D "_MBCS" /GF /Gy /Fp".\release/mysqltest.pch" /Fo".\release/" /Fd".\release/" /c /GX
# ADD CPP /nologo /MT /I "../include" /I "../
regex" /I "../" /W3 /Ob1 /G6 /D "DBUG_OFF" /D "_CONSOLE" /D "_WINDOWS" /D "NDEBUG" /D "_MBCS" /GF /Gy /Fp".\release/mysqltest.pch" /Fo".\release/" /Fd".\release/" /c /GX
# ADD BASE MTL /nologo /tlb".\release\mysqltest.tlb" /win32
# ADD BASE MTL /nologo /tlb".\release\mysqltest.tlb" /win32
# ADD MTL /nologo /tlb".\release\mysqltest.tlb" /win32
# ADD MTL /nologo /tlb".\release\mysqltest.tlb" /win32
# ADD BASE RSC /l 1033 /d "NDEBUG"
# ADD BASE RSC /l 1033 /d "NDEBUG"
...
@@ -102,8 +102,8 @@ BSC32=bscmake.exe
...
@@ -102,8 +102,8 @@ BSC32=bscmake.exe
# ADD BASE BSC32 /nologo
# ADD BASE BSC32 /nologo
# ADD BSC32 /nologo
# ADD BSC32 /nologo
LINK32=link.exe
LINK32=link.exe
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib odbc32.lib odbccp32.lib mysqlclient.lib wsock32.lib /nologo /out:"..\client_release\mysqltest.exe" /incremental:no /libpath:"..\lib_release\" /pdb:".\release\mysqltest.pdb" /pdbtype:sept /subsystem:console /MACHINE:I386
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib odbc32.lib odbccp32.lib mysqlclient.lib wsock32.lib
mysys.lib regex.lib
/nologo /out:"..\client_release\mysqltest.exe" /incremental:no /libpath:"..\lib_release\" /pdb:".\release\mysqltest.pdb" /pdbtype:sept /subsystem:console /MACHINE:I386
# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib odbc32.lib odbccp32.lib mysqlclient.lib wsock32.lib /nologo /out:"..\client_release\mysqltest.exe" /incremental:no /libpath:"..\lib_release\" /pdb:".\release\mysqltest.pdb" /pdbtype:sept /subsystem:console /MACHINE:I386
# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib odbc32.lib odbccp32.lib mysqlclient.lib wsock32.lib
mysys.lib regex.lib
/nologo /out:"..\client_release\mysqltest.exe" /incremental:no /libpath:"..\lib_release\" /pdb:".\release\mysqltest.pdb" /pdbtype:sept /subsystem:console /MACHINE:I386
!ENDIF
!ENDIF
...
...
VC++Files/mysql-test/mysql_test_run_new.dsp
View file @
f472cec1
...
@@ -76,8 +76,8 @@ BSC32=bscmake.exe
...
@@ -76,8 +76,8 @@ BSC32=bscmake.exe
# ADD BASE BSC32 /nologo
# ADD BASE BSC32 /nologo
# ADD BSC32 /nologo
# ADD BSC32 /nologo
LINK32=link.exe
LINK32=link.exe
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib odbc32.lib odbccp32.lib Ws2_32.lib /nologo /out:"..\mysql-test\mysql_test_run_new.exe" /incremental:no /pdb:".\Release\mysql_test_run_new.pdb" /pdbtype:sept /subsystem:
windows
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib odbc32.lib odbccp32.lib Ws2_32.lib /nologo /out:"..\mysql-test\mysql_test_run_new.exe" /incremental:no /pdb:".\Release\mysql_test_run_new.pdb" /pdbtype:sept /subsystem:
console
# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib odbc32.lib odbccp32.lib Ws2_32.lib /nologo /out:"..\mysql-test\mysql_test_run_new.exe" /incremental:no /pdb:".\Release\mysql_test_run_new.pdb" /pdbtype:sept /subsystem:
windows
# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib odbc32.lib odbccp32.lib Ws2_32.lib /nologo /out:"..\mysql-test\mysql_test_run_new.exe" /incremental:no /pdb:".\Release\mysql_test_run_new.pdb" /pdbtype:sept /subsystem:
console
!ENDIF
!ENDIF
...
...
include/my_pthread.h
View file @
f472cec1
...
@@ -631,6 +631,7 @@ extern int pthread_dummy(int);
...
@@ -631,6 +631,7 @@ extern int pthread_dummy(int);
/* All thread specific variables are in the following struct */
/* All thread specific variables are in the following struct */
#define THREAD_NAME_SIZE 10
#define THREAD_NAME_SIZE 10
#ifndef DEFAULT_THREAD_STACK
#if defined(__ia64__)
#if defined(__ia64__)
/*
/*
MySQL can survive with 32K, but some glibc libraries require > 128K stack
MySQL can survive with 32K, but some glibc libraries require > 128K stack
...
@@ -640,6 +641,7 @@ extern int pthread_dummy(int);
...
@@ -640,6 +641,7 @@ extern int pthread_dummy(int);
#else
#else
#define DEFAULT_THREAD_STACK (192*1024)
#define DEFAULT_THREAD_STACK (192*1024)
#endif
#endif
#endif
struct
st_my_thread_var
struct
st_my_thread_var
{
{
...
...
innobase/os/os0file.c
View file @
f472cec1
...
@@ -1767,7 +1767,21 @@ os_file_flush(
...
@@ -1767,7 +1767,21 @@ os_file_flush(
#else
#else
int
ret
;
int
ret
;
#ifdef HAVE_FDATASYNC
#ifdef HAVE_DARWIN_THREADS
/* Apple has disabled fsync() for internal disk drives in OS X. That
caused corruption for a user when he tested a power outage. Let us in
OS X use a nonstandard flush method recommended by an Apple
engineer. */
ret
=
fcntl
(
file
,
F_FULLFSYNC
,
NULL
);
if
(
ret
)
{
/* If we are not on a file system that supports this, then
fall back to a plain fsync. */
ret
=
fsync
(
file
);
}
#elif HAVE_FDATASYNC
ret
=
fdatasync
(
file
);
ret
=
fdatasync
(
file
);
#else
#else
/* fprintf(stderr, "Flushing to file %p\n", file); */
/* fprintf(stderr, "Flushing to file %p\n", file); */
...
...
mysql-test/my_manage.c
View file @
f472cec1
...
@@ -327,7 +327,7 @@ int spawn(char *path, arg_list_t *al, int join, char *input,
...
@@ -327,7 +327,7 @@ int spawn(char *path, arg_list_t *al, int join, char *input,
int
spawn
(
char
*
path
,
arg_list_t
*
al
,
int
join
,
char
*
input
,
int
spawn
(
char
*
path
,
arg_list_t
*
al
,
int
join
,
char
*
input
,
char
*
output
,
char
*
error
,
HANDLE
*
pid
)
char
*
output
,
char
*
error
,
HANDLE
*
pid
)
{
{
intptr_t
result
;
bool
result
;
int
i
;
int
i
;
STARTUPINFO
startup_info
;
STARTUPINFO
startup_info
;
PROCESS_INFORMATION
process_information
;
PROCESS_INFORMATION
process_information
;
...
@@ -665,7 +665,11 @@ void del_tree(char *dir)
...
@@ -665,7 +665,11 @@ void del_tree(char *dir)
rmdir
(
dir
);
rmdir
(
dir
);
#else
#else
struct
_finddata_t
parent
;
struct
_finddata_t
parent
;
#if defined(_MSC_VER) && _MSC_VER > 1200
intptr_t
handle
;
intptr_t
handle
;
#else
long
handle
;
#endif
/* _MSC_VER && _MSC_VER > 1200 */
char
temp
[
FN_REFLEN
];
char
temp
[
FN_REFLEN
];
char
mask
[
FN_REFLEN
];
char
mask
[
FN_REFLEN
];
...
@@ -728,7 +732,11 @@ int removef(const char *format, ...)
...
@@ -728,7 +732,11 @@ int removef(const char *format, ...)
va_list
ap
;
va_list
ap
;
char
path
[
FN_REFLEN
];
char
path
[
FN_REFLEN
];
struct
_finddata_t
parent
;
struct
_finddata_t
parent
;
#if defined(_MSC_VER) && _MSC_VER > 1200
intptr_t
handle
;
intptr_t
handle
;
#else
long
handle
;
#endif
/* _MSC_VER && _MSC_VER > 1200 */
char
temp
[
FN_REFLEN
];
char
temp
[
FN_REFLEN
];
char
*
p
;
char
*
p
;
...
...
mysql-test/mysql_test_run_new.c
View file @
f472cec1
...
@@ -37,7 +37,8 @@
...
@@ -37,7 +37,8 @@
#include <sys/mode.h>
#include <sys/mode.h>
#endif
#endif
#ifdef __WIN__
#ifdef __WIN__
#include <Shlwapi.h>
#include <windows.h>
#include <shlwapi.h>
#include <direct.h>
#include <direct.h>
#endif
#endif
...
@@ -89,15 +90,25 @@ static char master_socket[FN_REFLEN]= "./var/tmp/master.sock";
...
@@ -89,15 +90,25 @@ static char master_socket[FN_REFLEN]= "./var/tmp/master.sock";
static
char
slave_socket
[
FN_REFLEN
]
=
"./var/tmp/slave.sock"
;
static
char
slave_socket
[
FN_REFLEN
]
=
"./var/tmp/slave.sock"
;
#endif
#endif
#define MAX_COUNT_TESTES 1024
#ifdef __WIN__
# define sting_compare_func _stricmp
#else
# ifdef HAVE_STRCASECMP
# define sting_compare_func strcasecmp
# else
# define sting_compare_func strcmp
# endif
#endif
/* comma delimited list of tests to skip or empty string */
/* comma delimited list of tests to skip or empty string */
#ifndef __WIN__
#ifndef __WIN__
static
char
skip_test
[
FN_REFLEN
]
=
" lowercase_table3 , system_mysql_db_fix "
;
static
char
skip_test
[
FN_REFLEN
]
=
" lowercase_table3 , system_mysql_db_fix "
;
#else
#else
/*
/*
The most ignore testes contain the calls of system command
The most ignore testes contain the calls of system command
*/
#define MAX_COUNT_TESTES 1024
/*
lowercase_table3 is disabled by Gerg
lowercase_table3 is disabled by Gerg
system_mysql_db_fix is disabled by Gerg
system_mysql_db_fix is disabled by Gerg
sp contains a command system
sp contains a command system
...
@@ -1437,12 +1448,11 @@ void setup(char *file __attribute__((unused)))
...
@@ -1437,12 +1448,11 @@ void setup(char *file __attribute__((unused)))
/*
/*
Compare names of testes for right order
Compare names of testes for right order
*/
*/
#ifdef __WIN__
int
compare
(
const
void
*
arg1
,
const
void
*
arg2
)
int
compare
(
const
void
*
arg1
,
const
void
*
arg2
)
{
{
return
_stricmp
(
*
(
char
**
)
arg1
,
*
(
char
**
)
arg2
);
return
sting_compare_func
(
*
(
char
**
)
arg1
,
*
(
char
**
)
arg2
);
}
}
#endif
/******************************************************************************
/******************************************************************************
...
@@ -1454,6 +1464,10 @@ int compare( const void *arg1, const void *arg2 )
...
@@ -1454,6 +1464,10 @@ int compare( const void *arg1, const void *arg2 )
int
main
(
int
argc
,
char
**
argv
)
int
main
(
int
argc
,
char
**
argv
)
{
{
int
is_ignore_list
=
0
;
int
is_ignore_list
=
0
;
char
**
names
=
0
;
char
**
testes
=
0
;
int
name_index
;
int
index
;
/* setup */
/* setup */
setup
(
argv
[
0
]);
setup
(
argv
[
0
]);
...
@@ -1517,6 +1531,11 @@ int main(int argc, char **argv)
...
@@ -1517,6 +1531,11 @@ int main(int argc, char **argv)
else
else
{
{
/* run all tests */
/* run all tests */
testes
=
malloc
(
MAX_COUNT_TESTES
*
sizeof
(
void
*
));
if
(
!
testes
)
die
(
"can not allcate memory for sorting"
);
names
=
testes
;
name_index
=
0
;
#ifndef __WIN__
#ifndef __WIN__
struct
dirent
*
entry
;
struct
dirent
*
entry
;
DIR
*
parent
;
DIR
*
parent
;
...
@@ -1533,26 +1552,31 @@ int main(int argc, char **argv)
...
@@ -1533,26 +1552,31 @@ int main(int argc, char **argv)
strcpy
(
test
,
strlwr
(
entry
->
d_name
));
strcpy
(
test
,
strlwr
(
entry
->
d_name
));
/* find the test suffix */
/* find the test suffix */
if
((
position
=
strinstr
(
test
,
TEST_SUFFIX
))
!=
0
)
if
((
position
=
strinstr
(
test
,
TEST_SUFFIX
))
!=
0
)
{
if
(
name_index
<
MAX_COUNT_TESTES
)
{
{
/* null terminate at the suffix */
/* null terminate at the suffix */
*
(
test
+
position
-
1
)
=
'\0'
;
*
(
test
+
position
-
1
)
=
'\0'
;
/* run test */
/* insert test */
run_test
(
test
);
*
names
=
malloc
(
FN_REFLEN
);
strcpy
(
*
names
,
test
);
names
++
;
name_index
++
;
}
else
die
(
"can not sort files, array is overloaded"
);
}
}
}
}
closedir
(
parent
);
closedir
(
parent
);
}
}
#else
#else
{
struct
_finddata_t
dir
;
struct
_finddata_t
dir
;
intptr_t
handle
;
int
*
handle
;
char
test
[
FN_LEN
];
char
test
[
FN_LEN
];
char
mask
[
FN_REFLEN
];
char
mask
[
FN_REFLEN
];
char
*
p
;
char
*
p
;
int
position
;
int
position
;
char
**
names
=
0
;
char
**
testes
=
0
;
int
name_index
;
int
index
;
/* single test */
/* single test */
single_test
=
FALSE
;
single_test
=
FALSE
;
...
@@ -1564,9 +1588,6 @@ int main(int argc, char **argv)
...
@@ -1564,9 +1588,6 @@ int main(int argc, char **argv)
die
(
"Unable to open tests directory."
);
die
(
"Unable to open tests directory."
);
}
}
names
=
malloc
(
MAX_COUNT_TESTES
*
4
);
testes
=
names
;
name_index
=
0
;
do
do
{
{
...
@@ -1577,31 +1598,34 @@ int main(int argc, char **argv)
...
@@ -1577,31 +1598,34 @@ int main(int argc, char **argv)
/* find the test suffix */
/* find the test suffix */
if
((
position
=
strinstr
(
test
,
TEST_SUFFIX
))
!=
0
)
if
((
position
=
strinstr
(
test
,
TEST_SUFFIX
))
!=
0
)
{
{
p
=
test
+
position
-
1
;
if
(
name_index
<
MAX_COUNT_TESTES
)
{
/* null terminate at the suffix */
/* null terminate at the suffix */
*
p
=
0
;
*
(
test
+
position
-
1
)
=
'\0'
;
/* insert test */
/* insert test */
*
names
=
malloc
(
FN_REFLEN
);
*
names
=
malloc
(
FN_REFLEN
);
strcpy
(
*
names
,
test
);
strcpy
(
*
names
,
test
);
names
++
;
names
++
;
name_index
++
;
name_index
++
;
}
}
else
die
(
"can not sort files, array is overloaded"
);
}
}
}
}
while
(
_findnext
(
handle
,
&
dir
)
==
0
);
}
while
(
_findnext
(
handle
,
&
dir
)
==
0
);
_findclose
(
handle
);
_findclose
(
handle
);
}
#endif
qsort
(
(
void
*
)
testes
,
name_index
,
sizeof
(
char
*
),
compare
);
qsort
(
(
void
*
)
testes
,
name_index
,
sizeof
(
char
*
),
compare
);
for
(
index
=
0
;
index
<
=
name_index
;
index
++
)
for
(
index
=
0
;
index
<
name_index
;
index
++
)
{
{
run_test
(
testes
[
index
]);
run_test
(
testes
[
index
]);
free
(
testes
[
index
]);
free
(
testes
[
index
]);
}
}
free
(
testes
);
free
(
testes
);
#endif
}
}
/* stop server */
/* stop server */
...
...
mysys/mf_keycaches.c
View file @
f472cec1
...
@@ -235,7 +235,7 @@ static my_bool safe_hash_set(SAFE_HASH *hash, const byte *key, uint length,
...
@@ -235,7 +235,7 @@ static my_bool safe_hash_set(SAFE_HASH *hash, const byte *key, uint length,
if
(
my_hash_insert
(
&
hash
->
hash
,
(
byte
*
)
entry
))
if
(
my_hash_insert
(
&
hash
->
hash
,
(
byte
*
)
entry
))
{
{
/* This can only happen if hash got out of memory */
/* This can only happen if hash got out of memory */
my_
delet
e
((
char
*
)
entry
,
MYF
(
0
));
my_
fre
e
((
char
*
)
entry
,
MYF
(
0
));
error
=
1
;
error
=
1
;
goto
end
;
goto
end
;
}
}
...
...
mysys/my_sleep.c
View file @
f472cec1
...
@@ -23,6 +23,8 @@ void my_sleep(ulong m_seconds)
...
@@ -23,6 +23,8 @@ void my_sleep(ulong m_seconds)
{
{
#ifdef __NETWARE__
#ifdef __NETWARE__
delay
(
m_seconds
/
1000
+
1
);
delay
(
m_seconds
/
1000
+
1
);
#elif defined(__WIN__)
Sleep
(
m_seconds
/
1000
+
1
);
/* Sleep() has millisecond arg */
#elif defined(OS2)
#elif defined(OS2)
DosSleep
(
m_seconds
/
1000
+
1
);
DosSleep
(
m_seconds
/
1000
+
1
);
#elif defined(HAVE_SELECT)
#elif defined(HAVE_SELECT)
...
...
scripts/mysqld_safe.sh
View file @
f472cec1
...
@@ -327,13 +327,13 @@ do
...
@@ -327,13 +327,13 @@ do
# but should work for the rest of the servers.
# but should work for the rest of the servers.
# The only thing is ps x => redhat 5 gives warnings when using ps -x.
# The only thing is ps x => redhat 5 gives warnings when using ps -x.
# kill -9 is used or the process won't react on the kill.
# kill -9 is used or the process won't react on the kill.
numofproces
=
`
ps xa |
grep
-v
"grep"
|
grep
"
$ledir
/
$MYSQLD
\>
"
|
grep
-c
"pid-file=
$pid_file
"
`
numofproces
=
`
ps xa
ww
|
grep
-v
"grep"
|
grep
"
$ledir
/
$MYSQLD
\>
"
|
grep
-c
"pid-file=
$pid_file
"
`
echo
-e
"
\n
Number of processes running now:
$numofproces
"
|
tee
-a
$err_log
echo
-e
"
\n
Number of processes running now:
$numofproces
"
|
tee
-a
$err_log
I
=
1
I
=
1
while
test
"
$I
"
-le
"
$numofproces
"
while
test
"
$I
"
-le
"
$numofproces
"
do
do
PROC
=
`
ps xa |
grep
"
$ledir
/
$MYSQLD
\>
"
|
grep
-v
"grep"
|
grep
"pid-file=
$pid_file
"
|
sed
-n
'$p'
`
PROC
=
`
ps xa
ww
|
grep
"
$ledir
/
$MYSQLD
\>
"
|
grep
-v
"grep"
|
grep
"pid-file=
$pid_file
"
|
sed
-n
'$p'
`
for
T
in
$PROC
for
T
in
$PROC
do
do
...
...
sql-bench/crash-me.sh
View file @
f472cec1
...
@@ -1039,7 +1039,7 @@ try_and_report("Automatic row id", "automatic_rowid",
...
@@ -1039,7 +1039,7 @@ try_and_report("Automatic row id", "automatic_rowid",
[
"MATCH UNIQUE"
,
"match_unique"
,
[
"MATCH UNIQUE"
,
"match_unique"
,
"1 match unique (select a from crash_me)"
,1,0],
"1 match unique (select a from crash_me)"
,1,0],
[
"MATCH"
,
"match"
,
"1 match (select a from crash_me)"
,1,0],
[
"MATCH"
,
"match"
,
"1 match (select a from crash_me)"
,1,0],
[
"MATCHES"
,
"matches"
,
"b matc
j
hes 'a*'"
,1,0],
[
"MATCHES"
,
"matches"
,
"b matches 'a*'"
,1,0],
[
"NOT BETWEEN"
,
"not_between"
,
"7 not between 4 and 6"
,1,0],
[
"NOT BETWEEN"
,
"not_between"
,
"7 not between 4 and 6"
,1,0],
[
"NOT EXISTS"
,
"not_exists"
,
[
"NOT EXISTS"
,
"not_exists"
,
"not exists (select * from crash_me where a = 2)"
,1,0],
"not exists (select * from crash_me where a = 2)"
,1,0],
...
...
sql-common/client.c
View file @
f472cec1
...
@@ -880,7 +880,7 @@ static const char *default_options[]=
...
@@ -880,7 +880,7 @@ static const char *default_options[]=
"connect-timeout"
,
"local-infile"
,
"disable-local-infile"
,
"connect-timeout"
,
"local-infile"
,
"disable-local-infile"
,
"replication-probe"
,
"enable-reads-from-master"
,
"repl-parse-query"
,
"replication-probe"
,
"enable-reads-from-master"
,
"repl-parse-query"
,
"ssl-cipher"
,
"max-allowed-packet"
,
"protocol"
,
"shared-memory-base-name"
,
"ssl-cipher"
,
"max-allowed-packet"
,
"protocol"
,
"shared-memory-base-name"
,
"multi-results"
,
"multi-queries"
,
"secure-auth"
,
"multi-results"
,
"multi-
statements"
,
"multi-
queries"
,
"secure-auth"
,
"report-data-truncation"
,
"report-data-truncation"
,
NullS
NullS
};
};
...
@@ -1087,12 +1087,13 @@ void mysql_read_default_options(struct st_mysql_options *options,
...
@@ -1087,12 +1087,13 @@ void mysql_read_default_options(struct st_mysql_options *options,
options
->
client_flag
|=
CLIENT_MULTI_RESULTS
;
options
->
client_flag
|=
CLIENT_MULTI_RESULTS
;
break
;
break
;
case
31
:
case
31
:
case
32
:
options
->
client_flag
|=
CLIENT_MULTI_STATEMENTS
|
CLIENT_MULTI_RESULTS
;
options
->
client_flag
|=
CLIENT_MULTI_STATEMENTS
|
CLIENT_MULTI_RESULTS
;
break
;
break
;
case
3
2
:
/* secure-auth */
case
3
3
:
/* secure-auth */
options
->
secure_auth
=
TRUE
;
options
->
secure_auth
=
TRUE
;
break
;
break
;
case
3
3
:
/* report-data-truncation */
case
3
4
:
/* report-data-truncation */
options
->
report_data_truncation
=
opt_arg
?
test
(
atoi
(
opt_arg
))
:
1
;
options
->
report_data_truncation
=
opt_arg
?
test
(
atoi
(
opt_arg
))
:
1
;
break
;
break
;
default:
default:
...
...
sql/sql_parse.cc
View file @
f472cec1
...
@@ -2665,7 +2665,6 @@ mysql_execute_command(THD *thd)
...
@@ -2665,7 +2665,6 @@ mysql_execute_command(THD *thd)
lex
->
link_first_table_back
(
create_table
,
link_to_local
);
lex
->
link_first_table_back
(
create_table
,
link_to_local
);
break
;
break
;
create_error:
/* put tables back for PS rexecuting */
/* put tables back for PS rexecuting */
lex
->
link_first_table_back
(
create_table
,
link_to_local
);
lex
->
link_first_table_back
(
create_table
,
link_to_local
);
goto
error
;
goto
error
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment