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
688659df
Commit
688659df
authored
Apr 12, 2006
by
jimw@mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Support --debug/-# in instance manager.
parent
c490aff5
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
26 additions
and
1 deletion
+26
-1
mysql-test/mysql-test-run.pl
mysql-test/mysql-test-run.pl
+6
-0
server-tools/instance-manager/options.cc
server-tools/instance-manager/options.cc
+16
-1
server-tools/instance-manager/options.h
server-tools/instance-manager/options.h
+4
-0
No files found.
mysql-test/mysql-test-run.pl
View file @
688659df
...
...
@@ -2940,6 +2940,12 @@ sub im_start($$) {
mtr_add_arg
(
$args
,
"
--defaults-file=%s
",
$instance_manager
->
{'
defaults_file
'});
if
(
$opt_debug
)
{
mtr_add_arg
(
$args
,
"
--debug=d:t:i:A,%s/log/im.trace
",
$opt_vardir_trace
);
}
foreach
my
$opt
(
@
{
$opts
})
{
mtr_add_arg
(
$args
,
$opt
);
...
...
server-tools/instance-manager/options.cc
View file @
688659df
...
...
@@ -57,6 +57,9 @@ uint Options::port_number= DEFAULT_PORT;
char
**
Options
::
saved_argv
=
NULL
;
/* Remember if the config file was forced */
bool
Options
::
is_forced_default_file
=
0
;
#ifndef DBUG_OFF
const
char
*
Options
::
default_dbug_option
=
"d:t:i:O,im.trace"
;
#endif
/*
List of options, accepted by the instance manager.
...
...
@@ -88,6 +91,12 @@ static struct my_option my_long_options[] =
{
"help"
,
'?'
,
"Display this help and exit."
,
0
,
0
,
0
,
GET_NO_ARG
,
NO_ARG
,
0
,
0
,
0
,
0
,
0
,
0
},
#ifndef DBUG_OFF
{
"debug"
,
'#'
,
"Debug log."
,
(
gptr
*
)
&
Options
::
default_dbug_option
,
(
gptr
*
)
&
Options
::
default_dbug_option
,
0
,
GET_STR
,
OPT_ARG
,
0
,
0
,
0
,
0
,
0
,
0
},
#endif
{
"log"
,
OPT_LOG
,
"Path to log file. Used only with --run-as-service."
,
(
gptr
*
)
&
Options
::
log_file_name
,
(
gptr
*
)
&
Options
::
log_file_name
,
0
,
GET_STR
,
REQUIRED_ARG
,
0
,
0
,
0
,
0
,
0
,
0
},
...
...
@@ -226,7 +235,7 @@ C_MODE_START
static
my_bool
get_one_option
(
int
optid
,
const
struct
my_option
*
opt
__attribute__
((
unused
)),
char
*
argument
__attribute__
((
unused
))
)
char
*
argument
)
{
switch
(
optid
)
{
case
'V'
:
...
...
@@ -238,6 +247,12 @@ get_one_option(int optid,
case
'?'
:
usage
();
exit
(
0
);
case
'#'
:
#ifndef DBUG_OFF
DBUG_SET
(
argument
?
argument
:
Options
::
default_dbug_option
);
DBUG_SET_INITIAL
(
argument
?
argument
:
Options
::
default_dbug_option
);
#endif
break
;
}
return
0
;
}
...
...
server-tools/instance-manager/options.h
View file @
688659df
...
...
@@ -51,6 +51,10 @@ struct Options
/* argv pointer returned by load_defaults() to be used by free_defaults() */
static
char
**
saved_argv
;
#ifndef DBUG_OFF
static
const
char
*
default_dbug_option
;
#endif
int
load
(
int
argc
,
char
**
argv
);
void
cleanup
();
#ifdef __WIN__
...
...
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