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
e549ba80
Commit
e549ba80
authored
May 02, 2008
by
msvensson@pilot.mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug#36469 mysql_upgrade does not use --tmpdir
parent
4cede4a3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
1 deletion
+11
-1
client/mysql_upgrade.c
client/mysql_upgrade.c
+10
-1
mysql-test/mysql-test-run.pl
mysql-test/mysql-test-run.pl
+1
-0
No files found.
client/mysql_upgrade.c
View file @
e549ba80
...
...
@@ -40,6 +40,8 @@ static DYNAMIC_STRING ds_args;
static
char
*
opt_password
=
0
;
static
my_bool
tty_password
=
0
;
static
char
opt_tmpdir
[
FN_REFLEN
];
#ifndef DBUG_OFF
static
char
*
default_dbug_option
=
(
char
*
)
"d:t:O,/tmp/mysql_upgrade.trace"
;
#endif
...
...
@@ -105,6 +107,8 @@ static struct my_option my_long_options[]=
#endif
{
"socket"
,
'S'
,
"Socket file to use for connection."
,
0
,
0
,
0
,
GET_STR
,
REQUIRED_ARG
,
0
,
0
,
0
,
0
,
0
,
0
},
{
"tmpdir"
,
't'
,
"Directory for temporary files"
,
0
,
0
,
0
,
GET_STR
,
REQUIRED_ARG
,
0
,
0
,
0
,
0
,
0
,
0
},
{
"user"
,
'u'
,
"User for login if not current user."
,
(
gptr
*
)
&
opt_user
,
(
gptr
*
)
&
opt_user
,
0
,
GET_STR
,
REQUIRED_ARG
,
0
,
0
,
0
,
0
,
0
,
0
},
#include <sslopt-longopts.h>
...
...
@@ -229,6 +233,11 @@ get_one_option(int optid, const struct my_option *opt,
}
break
;
case
't'
:
strnmov
(
opt_tmpdir
,
argument
,
sizeof
(
opt_tmpdir
));
add_option
=
FALSE
;
break
;
case
'b'
:
/* --basedir */
case
'v'
:
/* --verbose */
case
'd'
:
/* --datadir */
...
...
@@ -449,7 +458,7 @@ static int run_query(const char *query, DYNAMIC_STRING *ds_res,
char
query_file_path
[
FN_REFLEN
];
DBUG_ENTER
(
"run_query"
);
DBUG_PRINT
(
"enter"
,
(
"query: %s"
,
query
));
if
((
fd
=
create_temp_file
(
query_file_path
,
NULL
,
if
((
fd
=
create_temp_file
(
query_file_path
,
opt_tmpdir
,
"sql"
,
O_CREAT
|
O_SHARE
|
O_RDWR
,
MYF
(
MY_WME
)))
<
0
)
die
(
"Failed to create temporary file for defaults"
);
...
...
mysql-test/mysql-test-run.pl
View file @
e549ba80
...
...
@@ -1745,6 +1745,7 @@ sub mysql_upgrade_arguments()
mtr_add_arg
(
$args
,
"
--socket=
$master
->[0]->{'path_sock'}
");
mtr_add_arg
(
$args
,
"
--datadir=
$master
->[0]->{'path_myddir'}
");
mtr_add_arg
(
$args
,
"
--basedir=
$glob_basedir
");
mtr_add_arg
(
$args
,
"
--tmpdir=
$opt_tmpdir
");
if
(
$opt_debug
)
{
...
...
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