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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
052b1268
Commit
052b1268
authored
May 01, 2006
by
jimw@mysql.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge mysql.com:/home/jimw/my/mysql-5.0-clean
into mysql.com:/home/jimw/my/mysql-5.1-clean
parents
7afa8aa7
c571f6ff
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
7 deletions
+12
-7
client/mysql_upgrade.c
client/mysql_upgrade.c
+4
-2
client/mysqltest.c
client/mysqltest.c
+5
-4
include/config-win.h
include/config-win.h
+1
-0
sql/repl_failsafe.cc
sql/repl_failsafe.cc
+2
-1
No files found.
client/mysql_upgrade.c
View file @
052b1268
...
...
@@ -135,7 +135,9 @@ static int create_check_file(const char *path)
if
(
check_file
<
0
)
return
1
;
error
=
my_write
(
check_file
,
VERSION
,
strlen
(
VERSION
),
MYF
(
MY_WME
|
MY_FNABP
));
error
=
my_write
(
check_file
,
MYSQL_SERVER_VERSION
,
strlen
(
MYSQL_SERVER_VERSION
),
MYF
(
MY_WME
|
MY_FNABP
));
error
=
my_close
(
check_file
,
MYF
(
MY_FAE
|
MY_WME
))
||
error
;
return
error
;
}
...
...
@@ -243,7 +245,7 @@ int main(int argc, char **argv)
&&
(
test_file_exists
(
"./bin"
,
"mysqld"
)
||
test_file_exists
(
"./libexec"
,
"mysqld"
)))
{
getcwd
(
bindir
,
sizeof
(
bindir
));
my_getwd
(
bindir
,
sizeof
(
bindir
),
MYF
(
0
));
bindir_end
=
bindir
+
strlen
(
bindir
);
}
else
...
...
client/mysqltest.c
View file @
052b1268
...
...
@@ -153,7 +153,7 @@ static uint global_expected_errors;
/* ************************************************************************ */
static
int
record
=
0
,
opt_sleep
=
0
;
static
int
record
=
0
,
opt_sleep
=
-
1
;
static
char
*
db
=
0
,
*
pass
=
0
;
const
char
*
user
=
0
,
*
host
=
0
,
*
unix_sock
=
0
,
*
opt_basedir
=
"./"
;
const
char
*
opt_include
=
0
;
...
...
@@ -1880,11 +1880,12 @@ int do_sleep(struct st_query *query, my_bool real_sleep)
query
->
first_argument
);
/* Fixed sleep time selected by --sleep option */
if
(
opt_sleep
&&
!
real_sleep
)
if
(
opt_sleep
>=
0
&&
!
real_sleep
)
sleep_val
=
opt_sleep
;
DBUG_PRINT
(
"info"
,
(
"sleep_val: %f"
,
sleep_val
));
my_sleep
((
ulong
)
(
sleep_val
*
1000000L
));
if
(
sleep_val
)
my_sleep
((
ulong
)
(
sleep_val
*
1000000L
));
query
->
last_argument
=
sleep_end
;
return
0
;
}
...
...
@@ -3310,7 +3311,7 @@ static struct my_option my_long_options[] =
"Don't use the memory allocation checking."
,
0
,
0
,
0
,
GET_NO_ARG
,
NO_ARG
,
0
,
0
,
0
,
0
,
0
,
0
},
{
"sleep"
,
'T'
,
"Sleep always this many seconds on sleep commands."
,
(
gptr
*
)
&
opt_sleep
,
(
gptr
*
)
&
opt_sleep
,
0
,
GET_INT
,
REQUIRED_ARG
,
0
,
0
,
0
,
(
gptr
*
)
&
opt_sleep
,
(
gptr
*
)
&
opt_sleep
,
0
,
GET_INT
,
REQUIRED_ARG
,
-
1
,
0
,
0
,
0
,
0
,
0
},
{
"socket"
,
'S'
,
"Socket file to use for connection."
,
(
gptr
*
)
&
unix_sock
,
(
gptr
*
)
&
unix_sock
,
0
,
GET_STR
,
REQUIRED_ARG
,
0
,
0
,
0
,
...
...
include/config-win.h
View file @
052b1268
...
...
@@ -382,6 +382,7 @@ inline double ulonglong2double(ulonglong value)
#include <custom_conf.h>
#else
#define DEFAULT_MYSQL_HOME "c:\\mysql"
#define DATADIR "c:\\mysql\\data"
#define PACKAGE "mysql"
#define DEFAULT_BASEDIR "C:\\"
#define SHAREDIR "share"
...
...
sql/repl_failsafe.cc
View file @
052b1268
...
...
@@ -861,7 +861,8 @@ bool load_master_data(THD* thd)
if
(
!
rpl_filter
->
db_ok
(
db
)
||
!
rpl_filter
->
db_ok_with_wild_table
(
db
)
||
!
strcmp
(
db
,
"mysql"
))
!
strcmp
(
db
,
"mysql"
)
||
is_schema_db
(
db
))
{
*
cur_table_res
=
0
;
continue
;
...
...
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