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
d4b236fe
Commit
d4b236fe
authored
Jan 06, 2005
by
jimw@mysql.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge mysql.com:/home/jwinstead2/mysql-4.1-7451
into mysql.com:/home/jwinstead2/mysql-4.1-clean
parents
4d025523
e3abb952
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
26 additions
and
6 deletions
+26
-6
BUILD/compile-dist
BUILD/compile-dist
+1
-0
client/mysqladmin.cc
client/mysqladmin.cc
+7
-1
include/my_pthread.h
include/my_pthread.h
+1
-1
innobase/os/os0file.c
innobase/os/os0file.c
+15
-1
scripts/mysqld_safe.sh
scripts/mysqld_safe.sh
+2
-2
sql/sql_parse.cc
sql/sql_parse.cc
+0
-1
No files found.
BUILD/compile-dist
View file @
d4b236fe
...
...
@@ -43,5 +43,6 @@ fi
--with-berkeley-db
\
--with-innodb
\
--enable-thread-safe-client
\
--with-extra-charsets
=
complex
\
--with-ndbcluster
make
client/mysqladmin.cc
View file @
d4b236fe
...
...
@@ -33,7 +33,8 @@
#define SHUTDOWN_DEF_TIMEOUT 3600
/* Wait for shutdown */
#define MAX_TRUNC_LENGTH 3
char
*
host
=
NULL
,
*
user
=
0
,
*
opt_password
=
0
;
char
*
host
=
NULL
,
*
user
=
0
,
*
opt_password
=
0
,
*
default_charset
=
NULL
;
char
truncated_var_names
[
MAX_MYSQL_VAR
][
MAX_TRUNC_LENGTH
];
char
ex_var_names
[
MAX_MYSQL_VAR
][
FN_REFLEN
];
ulonglong
last_values
[
MAX_MYSQL_VAR
];
...
...
@@ -145,6 +146,9 @@ static struct my_option my_long_options[] =
{
"character-sets-dir"
,
OPT_CHARSETS_DIR
,
"Directory where character sets are."
,
(
gptr
*
)
&
charsets_dir
,
(
gptr
*
)
&
charsets_dir
,
0
,
GET_STR
,
REQUIRED_ARG
,
0
,
0
,
0
,
0
,
0
,
0
},
{
"default-character-set"
,
OPT_DEFAULT_CHARSET
,
"Set the default character set."
,
(
gptr
*
)
&
default_charset
,
(
gptr
*
)
&
default_charset
,
0
,
GET_STR
,
REQUIRED_ARG
,
0
,
0
,
0
,
0
,
0
,
0
},
{
"help"
,
'?'
,
"Display this help and exit."
,
0
,
0
,
0
,
GET_NO_ARG
,
NO_ARG
,
0
,
0
,
0
,
0
,
0
,
0
},
{
"host"
,
'h'
,
"Connect to host."
,
(
gptr
*
)
&
host
,
(
gptr
*
)
&
host
,
0
,
GET_STR
,
...
...
@@ -343,6 +347,8 @@ int main(int argc,char *argv[])
if
(
shared_memory_base_name
)
mysql_options
(
&
mysql
,
MYSQL_SHARED_MEMORY_BASE_NAME
,
shared_memory_base_name
);
#endif
if
(
default_charset
)
mysql_options
(
&
mysql
,
MYSQL_SET_CHARSET_NAME
,
default_charset
);
if
(
sql_connect
(
&
mysql
,
option_wait
))
{
unsigned
int
err
=
mysql_errno
(
&
mysql
);
...
...
include/my_pthread.h
View file @
d4b236fe
...
...
@@ -639,7 +639,7 @@ extern int pthread_dummy(int);
*/
#define DEFAULT_THREAD_STACK (192*1024L)
#else
#define DEFAULT_THREAD_STACK (192*1024
L
)
#define DEFAULT_THREAD_STACK (192*1024)
#endif
#endif
...
...
innobase/os/os0file.c
View file @
d4b236fe
...
...
@@ -1763,7 +1763,21 @@ os_file_flush(
#else
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
);
#else
/* fprintf(stderr, "Flushing to file %p\n", file); */
...
...
scripts/mysqld_safe.sh
View file @
d4b236fe
...
...
@@ -86,7 +86,7 @@ parse_arguments() {
MY_PWD
=
`
pwd
`
# Check if we are starting this relative (for the binary release)
if
test
-
d
$MY_PWD
/data/mysql
-a
-
f
./share/mysql/english/errmsg.sys
-a
\
if
test
-f
./share/mysql/english/errmsg.sys
-a
\
-x
./bin/mysqld
then
MY_BASEDIR_VERSION
=
$MY_PWD
# Where bin, share and data are
...
...
@@ -97,7 +97,7 @@ then
defaults
=
"--defaults-extra-file=
$MY_BASEDIR_VERSION
/data/my.cnf"
fi
# Check if this is a 'moved install directory'
elif
test
-f
./
var/mysql/db.frm
-a
-f
./
share/mysql/english/errmsg.sys
-a
\
elif
test
-f
./share/mysql/english/errmsg.sys
-a
\
-x
./libexec/mysqld
then
MY_BASEDIR_VERSION
=
$MY_PWD
# Where libexec, share and var are
...
...
sql/sql_parse.cc
View file @
d4b236fe
...
...
@@ -2429,7 +2429,6 @@ mysql_execute_command(THD *thd)
create_table_local
);
break
;
create_error:
res
=
1
;
//error reported
unsent_create_error:
// put tables back for PS rexecuting
...
...
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