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
b8149f09
Commit
b8149f09
authored
Feb 11, 2009
by
Chad MILLER
Browse files
Options
Browse Files
Download
Plain Diff
Merge from bug tree.
parents
392c53b6
d8808625
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
9 deletions
+22
-9
sql/mysqld.cc
sql/mysqld.cc
+22
-9
No files found.
sql/mysqld.cc
View file @
b8149f09
...
@@ -688,6 +688,8 @@ bool mysqld_embedded=0;
...
@@ -688,6 +688,8 @@ bool mysqld_embedded=0;
bool
mysqld_embedded
=
1
;
bool
mysqld_embedded
=
1
;
#endif
#endif
static
my_bool
plugins_are_initialized
=
FALSE
;
#ifndef DBUG_OFF
#ifndef DBUG_OFF
static
const
char
*
default_dbug_option
;
static
const
char
*
default_dbug_option
;
#endif
#endif
...
@@ -1172,10 +1174,10 @@ extern "C" void unireg_abort(int exit_code)
...
@@ -1172,10 +1174,10 @@ extern "C" void unireg_abort(int exit_code)
{
{
DBUG_ENTER
(
"unireg_abort"
);
DBUG_ENTER
(
"unireg_abort"
);
if
(
opt_help
)
usage
();
if
(
exit_code
)
if
(
exit_code
)
sql_print_error
(
"Aborting
\n
"
);
sql_print_error
(
"Aborting
\n
"
);
else
if
(
opt_help
)
usage
();
clean_up
(
!
opt_help
&&
(
exit_code
||
!
opt_bootstrap
));
/* purecov: inspected */
clean_up
(
!
opt_help
&&
(
exit_code
||
!
opt_bootstrap
));
/* purecov: inspected */
DBUG_PRINT
(
"quit"
,(
"done with cleanup in unireg_abort"
));
DBUG_PRINT
(
"quit"
,(
"done with cleanup in unireg_abort"
));
wait_for_signal_thread_to_end
();
wait_for_signal_thread_to_end
();
...
@@ -3843,6 +3845,7 @@ server.");
...
@@ -3843,6 +3845,7 @@ server.");
if
(
ha_init_errors
())
if
(
ha_init_errors
())
DBUG_RETURN
(
1
);
DBUG_RETURN
(
1
);
{
if
(
plugin_init
(
&
defaults_argc
,
defaults_argv
,
if
(
plugin_init
(
&
defaults_argc
,
defaults_argv
,
(
opt_noacl
?
PLUGIN_INIT_SKIP_PLUGIN_TABLE
:
0
)
|
(
opt_noacl
?
PLUGIN_INIT_SKIP_PLUGIN_TABLE
:
0
)
|
(
opt_help
?
PLUGIN_INIT_SKIP_INITIALIZATION
:
0
)))
(
opt_help
?
PLUGIN_INIT_SKIP_INITIALIZATION
:
0
)))
...
@@ -3850,6 +3853,8 @@ server.");
...
@@ -3850,6 +3853,8 @@ server.");
sql_print_error
(
"Failed to initialize plugins."
);
sql_print_error
(
"Failed to initialize plugins."
);
unireg_abort
(
1
);
unireg_abort
(
1
);
}
}
plugins_are_initialized
=
TRUE
;
/* Don't separate from init function */
}
if
(
opt_help
)
if
(
opt_help
)
unireg_abort
(
0
);
unireg_abort
(
0
);
...
@@ -7423,7 +7428,8 @@ static void usage(void)
...
@@ -7423,7 +7428,8 @@ static void usage(void)
default_collation_name
=
(
char
*
)
default_charset_info
->
name
;
default_collation_name
=
(
char
*
)
default_charset_info
->
name
;
print_version
();
print_version
();
puts
(
"\
puts
(
"\
Copyright (C) 2000 MySQL AB, by Monty and others
\n
\
Copyright (C) 2000-2008 MySQL AB, by Monty and others
\n
\
Copyright (C) 2008 Sun Microsystems, Inc.
\n
\
This software comes with ABSOLUTELY NO WARRANTY. This is free software,
\n
\
This software comes with ABSOLUTELY NO WARRANTY. This is free software,
\n
\
and you are welcome to modify and redistribute it under the GPL license
\n\n
\
and you are welcome to modify and redistribute it under the GPL license
\n\n
\
Starts the MySQL database server
\n
"
);
Starts the MySQL database server
\n
"
);
...
@@ -7453,6 +7459,13 @@ Starts the MySQL database server\n");
...
@@ -7453,6 +7459,13 @@ Starts the MySQL database server\n");
/* Print out all the options including plugin supplied options */
/* Print out all the options including plugin supplied options */
my_print_help_inc_plugins
(
my_long_options
,
sizeof
(
my_long_options
)
/
sizeof
(
my_option
));
my_print_help_inc_plugins
(
my_long_options
,
sizeof
(
my_long_options
)
/
sizeof
(
my_option
));
if
(
!
plugins_are_initialized
)
{
puts
(
"
\n
\
Plugins have parameters that are not reflected in this list
\n
\
because execution stopped before plugins were initialized."
);
}
puts
(
"
\n
\
puts
(
"
\n
\
To see what values a running MySQL server is using, type
\n
\
To see what values a running MySQL server is using, type
\n
\
'mysqladmin variables' instead of 'mysqld --verbose --help'."
);
'mysqladmin variables' instead of 'mysqld --verbose --help'."
);
...
...
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