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
b9372f7e
Commit
b9372f7e
authored
Sep 13, 2006
by
hartmut@mysql.com/linux.site
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make ndb_config use the same default options
as any other ndb tool in the distribution (Bug #22295)
parent
d214ec09
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
38 deletions
+6
-38
ndb/tools/ndb_config.cpp
ndb/tools/ndb_config.cpp
+6
-38
No files found.
ndb/tools/ndb_config.cpp
View file @
b9372f7e
...
...
@@ -19,6 +19,8 @@
*/
#include <ndb_global.h>
#include <ndb_opts.h>
#include <my_sys.h>
#include <my_getopt.h>
#include <mysql_version.h>
...
...
@@ -47,34 +49,15 @@ static int g_mycnf = 0;
const
char
*
load_default_groups
[]
=
{
"mysql_cluster"
,
0
};
int
g_print_full_config
,
opt_ndb_shm
;
my_bool
opt_core
;
NDB_STD_OPTS_VARS
;
typedef
ndb_mgm_configuration_iterator
Iter
;
int
g_print_full_config
;
static
void
ndb_std_print_version
()
{
printf
(
"MySQL distrib %s, for %s (%s)
\n
"
,
MYSQL_SERVER_VERSION
,
SYSTEM_TYPE
,
MACHINE_TYPE
);
}
typedef
ndb_mgm_configuration_iterator
Iter
;
static
struct
my_option
my_long_options
[]
=
{
{
"usage"
,
'?'
,
"Display this help and exit."
,
0
,
0
,
0
,
GET_NO_ARG
,
NO_ARG
,
0
,
0
,
0
,
0
,
0
,
0
},
{
"help"
,
'?'
,
"Display this help and exit."
,
0
,
0
,
0
,
GET_NO_ARG
,
NO_ARG
,
0
,
0
,
0
,
0
,
0
,
0
},
{
"version"
,
'V'
,
"Output version information and exit."
,
0
,
0
,
0
,
GET_NO_ARG
,
NO_ARG
,
0
,
0
,
0
,
0
,
0
,
0
},
{
"ndb-connectstring"
,
256
,
"Set connect string for connecting to ndb_mgmd. "
"Syntax:
\"
[nodeid=<id>;][host=]<hostname>[:<port>]
\"
. "
"Overides specifying entries in NDB_CONNECTSTRING and Ndb.cfg"
,
(
gptr
*
)
&
g_connectstring
,
(
gptr
*
)
&
g_connectstring
,
0
,
GET_STR
,
REQUIRED_ARG
,
0
,
0
,
0
,
0
,
0
,
0
},
{
"ndb-shm"
,
256
,
"Print nodes"
,
(
gptr
*
)
&
opt_ndb_shm
,
(
gptr
*
)
&
opt_ndb_shm
,
0
,
GET_BOOL
,
NO_ARG
,
0
,
0
,
0
,
0
,
0
,
0
},
NDB_STD_OPTS
(
"ndb_config"
),
{
"nodes"
,
256
,
"Print nodes"
,
(
gptr
*
)
&
g_nodes
,
(
gptr
*
)
&
g_nodes
,
0
,
GET_BOOL
,
NO_ARG
,
0
,
0
,
0
,
0
,
0
,
0
},
...
...
@@ -121,21 +104,6 @@ static void usage()
my_print_help
(
my_long_options
);
my_print_variables
(
my_long_options
);
}
static
my_bool
ndb_std_get_one_option
(
int
optid
,
const
struct
my_option
*
opt
__attribute__
((
unused
)),
char
*
argument
)
{
switch
(
optid
)
{
case
'V'
:
ndb_std_print_version
();
exit
(
0
);
case
'?'
:
usage
();
exit
(
0
);
}
return
0
;
}
/**
* Match/Apply framework
...
...
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