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
92bde778
Commit
92bde778
authored
Jan 14, 2018
by
Daniel Black
Committed by
Sergei Golubchik
Oct 31, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
my_print_defaults: remove --config-file/extra-file
There have been deprecated since before 5.5 Closes #548
parent
9aac2bf8
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
31 deletions
+7
-31
extra/my_print_defaults.c
extra/my_print_defaults.c
+3
-26
man/my_print_defaults.1
man/my_print_defaults.1
+3
-4
mysql-test/main/mysqldump.test
mysql-test/main/mysqldump.test
+1
-1
No files found.
extra/my_print_defaults.c
View file @
92bde778
...
...
@@ -41,24 +41,6 @@ const char *default_dbug_option="d:t:o,/tmp/my_print_defaults.trace";
static
struct
my_option
my_long_options
[]
=
{
/*
NB: --config-file is troublesome, because get_defaults_options() doesn't
know about it, but we pretend --config-file is like --defaults-file. In
fact they behave differently: see the comments at the top of
mysys/default.c for how --defaults-file should behave.
This --config-file option behaves as:
- If it has a directory name part (absolute or relative), then only this
file is read; no error is given if the file doesn't exist
- If the file has no directory name part, the standard locations are
searched for a file of this name (and standard filename extensions are
added if the file has no extension)
*/
{
"config-file"
,
'c'
,
"Deprecated, please use --defaults-file instead. "
"Name of config file to read; if no extension is given, default "
"extension (e.g., .ini or .cnf) will be added"
,
(
char
**
)
&
config_file
,
(
char
**
)
&
config_file
,
0
,
GET_STR
,
REQUIRED_ARG
,
0
,
0
,
0
,
0
,
0
,
0
},
#ifdef DBUG_OFF
{
"debug"
,
'#'
,
"This is a non-debug version. Catch this and exit"
,
0
,
0
,
0
,
GET_DISABLED
,
OPT_ARG
,
0
,
0
,
0
,
0
,
0
,
0
},
...
...
@@ -66,8 +48,8 @@ static struct my_option my_long_options[] =
{
"debug"
,
'#'
,
"Output debug log"
,
(
char
**
)
&
default_dbug_option
,
(
char
**
)
&
default_dbug_option
,
0
,
GET_STR
,
OPT_ARG
,
0
,
0
,
0
,
0
,
0
,
0
},
#endif
{
"defaults-file"
,
'c'
,
"Like --config-file, except: if first option, "
"
then r
ead this file only, do not read global or per-user config "
{
"defaults-file"
,
'c'
,
"
R
ead this file only, do not read global or per-user config "
"files; should be the first option"
,
(
char
**
)
&
config_file
,
(
char
*
)
&
config_file
,
0
,
GET_STR
,
REQUIRED_ARG
,
0
,
0
,
0
,
0
,
0
,
0
},
...
...
@@ -80,11 +62,6 @@ static struct my_option my_long_options[] =
"In addition to the given groups, read also groups with this suffix"
,
(
char
**
)
&
my_defaults_group_suffix
,
(
char
**
)
&
my_defaults_group_suffix
,
0
,
GET_STR
,
REQUIRED_ARG
,
0
,
0
,
0
,
0
,
0
,
0
},
{
"extra-file"
,
'e'
,
"Deprecated. Synonym for --defaults-extra-file."
,
(
void
*
)
&
my_defaults_extra_file
,
(
void
*
)
&
my_defaults_extra_file
,
0
,
GET_STR
,
REQUIRED_ARG
,
0
,
0
,
0
,
0
,
0
,
0
},
{
"mysqld"
,
0
,
"Read the same set of groups that the mysqld binary does."
,
&
opt_mysqld
,
&
opt_mysqld
,
0
,
GET_BOOL
,
NO_ARG
,
0
,
0
,
0
,
0
,
0
,
0
},
{
"no-defaults"
,
'n'
,
"Return an empty string (useful for scripts)."
,
...
...
@@ -107,7 +84,7 @@ static void cleanup_and_exit(int exit_code)
static
void
version
()
{
printf
(
"%s Ver 1.
6
for %s at %s
\n
"
,
my_progname
,
SYSTEM_TYPE
,
MACHINE_TYPE
);
printf
(
"%s Ver 1.
7
for %s at %s
\n
"
,
my_progname
,
SYSTEM_TYPE
,
MACHINE_TYPE
);
}
...
...
man/my_print_defaults.1
View file @
92bde778
...
...
@@ -74,14 +74,14 @@ Display a help message and exit\&.
.\}
.\" my_print_defaults: config-file option
.\" config-file option: my_print_defaults
\fB
\-\-config\-file=\fR\fB\fIfile_name\fR\fR,
\fB
.\" my_print_defaults: defaults-file option
.\" defaults-file option: my_print_defaults
\fB\-\-defaults\-file=\fR\fB\fIfile_name\fR\fR,
\fB\-c \fR\fB\fIfile_name\fR\fR
.sp
Read only the given option file\&. If no extension is given, default extension(.ini or .cnf) will
be used\&.
\fB\-\-config-file\fR is deprecated, use \fB\-\-defaults\-file\fR instead\&.
If \fB\-\-defaults\-file\fR is
be used\&. If \fB\-\-defaults\-file\fR is
the first option, then read this file only, do not read global or per\-user config files; should be the first option.
.RE
.sp
...
...
@@ -118,11 +118,10 @@ string is
\fB\-\-defaults\-extra\-file=\fR\fB\fIfile_name\fR\fR,
.\" my_print_defaults: extra-file option
.\" extra-file option: my_print_defaults
\fB\-\-extra\-file=\fR\fB\fIfile_name\fR\fR,
\fB\-e \fR\fB\fIfile_name\fR\fR
.sp
Read this option file after the global option file but (on Unix) before the user option
file\&. Should be the first option\&.
\fB\-\-extra\-file\fR is deprecated, use \fB\-\-defaults\-extra\-file\fR\&.
file\&. Should be the first option\&.
.RE
.sp
.RS 4
...
...
mysql-test/main/mysqldump.test
View file @
92bde778
...
...
@@ -707,7 +707,7 @@ drop table t1;
--
echo
# Bug#15328 Segmentation fault occurred if my.cnf is invalid for escape sequence
--
echo
#
--
exec
$MYSQL_MY_PRINT_DEFAULTS
--
config
-
file
=
$MYSQL_TEST_DIR
/
std_data
/
bug15328
.
cnf
mysqldump
--
exec
$MYSQL_MY_PRINT_DEFAULTS
--
defaults
-
file
=
$MYSQL_TEST_DIR
/
std_data
/
bug15328
.
cnf
mysqldump
--
echo
#
--
echo
# Bug#19025 mysqldump doesn't correctly dump "auto_increment = [int]"
...
...
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