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
9fe02aa8
Commit
9fe02aa8
authored
Sep 04, 2006
by
hartmut@mysql.com/linux.site
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added print_defaults() calls to --help output for all binaries (Bug #21994)
parent
e3d56d2c
Changes
14
Hide whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
58 additions
and
14 deletions
+58
-14
ndb/src/cw/cpcd/main.cpp
ndb/src/cw/cpcd/main.cpp
+2
-0
ndb/src/kernel/vm/Configuration.cpp
ndb/src/kernel/vm/Configuration.cpp
+4
-1
ndb/src/mgmclient/main.cpp
ndb/src/mgmclient/main.cpp
+3
-1
ndb/src/mgmsrv/main.cpp
ndb/src/mgmsrv/main.cpp
+3
-1
ndb/tools/delete_all.cpp
ndb/tools/delete_all.cpp
+4
-1
ndb/tools/desc.cpp
ndb/tools/desc.cpp
+5
-1
ndb/tools/drop_index.cpp
ndb/tools/drop_index.cpp
+5
-1
ndb/tools/drop_tab.cpp
ndb/tools/drop_tab.cpp
+6
-2
ndb/tools/listTables.cpp
ndb/tools/listTables.cpp
+4
-1
ndb/tools/ndb_config.cpp
ndb/tools/ndb_config.cpp
+4
-1
ndb/tools/restore/restore_main.cpp
ndb/tools/restore/restore_main.cpp
+4
-1
ndb/tools/select_all.cpp
ndb/tools/select_all.cpp
+4
-1
ndb/tools/select_count.cpp
ndb/tools/select_count.cpp
+5
-1
ndb/tools/waiter.cpp
ndb/tools/waiter.cpp
+5
-1
No files found.
ndb/src/cw/cpcd/main.cpp
View file @
9fe02aa8
...
...
@@ -82,6 +82,8 @@ int main(int argc, char** argv){
load_defaults
(
"ndb_cpcd"
,
load_default_groups
,
&
argc
,
&
argv
);
if
(
handle_options
(
&
argc
,
&
argv
,
my_long_options
,
get_one_option
))
{
print_defaults
(
MYSQL_CONFIG_NAME
,
load_default_groups
);
puts
(
""
);
my_print_help
(
my_long_options
);
my_print_variables
(
my_long_options
);
exit
(
1
);
...
...
ndb/src/kernel/vm/Configuration.cpp
View file @
9fe02aa8
...
...
@@ -63,6 +63,8 @@ static const char* _nowait_nodes;
extern
Uint32
g_start_type
;
extern
NdbNodeBitmask
g_nowait_nodes
;
const
char
*
load_default_groups
[]
=
{
"mysql_cluster"
,
"ndbd"
,
0
};
/**
* Arguments to NDB process
*/
...
...
@@ -108,6 +110,8 @@ static void usage()
{
short_usage_sub
();
ndb_std_print_version
();
print_defaults
(
MYSQL_CONFIG_NAME
,
load_default_groups
);
puts
(
""
);
my_print_help
(
my_long_options
);
my_print_variables
(
my_long_options
);
}
...
...
@@ -115,7 +119,6 @@ static void usage()
bool
Configuration
::
init
(
int
argc
,
char
**
argv
)
{
const
char
*
load_default_groups
[]
=
{
"mysql_cluster"
,
"ndbd"
,
0
};
load_defaults
(
"my"
,
load_default_groups
,
&
argc
,
&
argv
);
int
ho_error
;
...
...
ndb/src/mgmclient/main.cpp
View file @
9fe02aa8
...
...
@@ -38,6 +38,7 @@ extern "C" int add_history(const char *command); /* From readline directory */
#include "ndb_mgmclient.hpp"
const
char
*
progname
=
"ndb_mgm"
;
const
char
*
load_default_groups
[]
=
{
"mysql_cluster"
,
"ndb_mgm"
,
0
};
static
Ndb_mgmclient
*
com
;
...
...
@@ -87,6 +88,8 @@ static void usage()
{
short_usage_sub
();
ndb_std_print_version
();
print_defaults
(
MYSQL_CONFIG_NAME
,
load_default_groups
);
puts
(
""
);
my_print_help
(
my_long_options
);
my_print_variables
(
my_long_options
);
}
...
...
@@ -128,7 +131,6 @@ int main(int argc, char** argv){
NDB_INIT
(
argv
[
0
]);
const
char
*
_host
=
0
;
int
_port
=
0
;
const
char
*
load_default_groups
[]
=
{
"mysql_cluster"
,
"ndb_mgm"
,
0
};
load_defaults
(
"my"
,
load_default_groups
,
&
argc
,
&
argv
);
int
ho_error
;
...
...
ndb/src/mgmsrv/main.cpp
View file @
9fe02aa8
...
...
@@ -47,6 +47,7 @@
#define DEBUG(x) ndbout << x << endl;
const
char
progname
[]
=
"mgmtsrvr"
;
const
char
*
load_default_groups
[]
=
{
"mysql_cluster"
,
"ndb_mgmd"
,
0
};
// copied from mysql.cc to get readline
extern
"C"
{
...
...
@@ -183,6 +184,8 @@ static void usage()
{
short_usage_sub
();
ndb_std_print_version
();
print_defaults
(
MYSQL_CONFIG_NAME
,
load_default_groups
);
puts
(
""
);
my_print_help
(
my_long_options
);
my_print_variables
(
my_long_options
);
}
...
...
@@ -196,7 +199,6 @@ int main(int argc, char** argv)
NDB_INIT
(
argv
[
0
]);
const
char
*
load_default_groups
[]
=
{
"mysql_cluster"
,
"ndb_mgmd"
,
0
};
load_defaults
(
"my"
,
load_default_groups
,
&
argc
,
&
argv
);
int
ho_error
;
...
...
ndb/tools/delete_all.cpp
View file @
9fe02aa8
...
...
@@ -27,6 +27,8 @@ static int clear_table(Ndb* pNdb, const NdbDictionary::Table* pTab,
NDB_STD_OPTS_VARS
;
const
char
*
load_default_groups
[]
=
{
"mysql_cluster"
,
0
};
static
const
char
*
_dbname
=
"TEST_DB"
;
static
my_bool
_transactional
=
false
;
static
struct
my_option
my_long_options
[]
=
...
...
@@ -46,13 +48,14 @@ static void usage()
"tabname
\n
"
\
"This program will delete all records in the specified table using scan delete.
\n
"
;
ndb_std_print_version
();
print_defaults
(
MYSQL_CONFIG_NAME
,
load_default_groups
);
puts
(
""
);
my_print_help
(
my_long_options
);
my_print_variables
(
my_long_options
);
}
int
main
(
int
argc
,
char
**
argv
){
NDB_INIT
(
argv
[
0
]);
const
char
*
load_default_groups
[]
=
{
"mysql_cluster"
,
0
};
load_defaults
(
"my"
,
load_default_groups
,
&
argc
,
&
argv
);
int
ho_error
;
#ifndef DBUG_OFF
...
...
ndb/tools/desc.cpp
View file @
9fe02aa8
...
...
@@ -24,6 +24,9 @@ NDB_STD_OPTS_VARS;
static
const
char
*
_dbname
=
"TEST_DB"
;
static
int
_unqualified
=
0
;
static
int
_partinfo
=
0
;
const
char
*
load_default_groups
[]
=
{
"mysql_cluster"
,
0
};
static
struct
my_option
my_long_options
[]
=
{
NDB_STD_OPTS
(
"ndb_desc"
),
...
...
@@ -45,6 +48,8 @@ static void usage()
"This program list all properties of table(s) in NDB Cluster.
\n
"
\
" ex: desc T1 T2 T4
\n
"
;
ndb_std_print_version
();
print_defaults
(
MYSQL_CONFIG_NAME
,
load_default_groups
);
puts
(
""
);
my_print_help
(
my_long_options
);
my_print_variables
(
my_long_options
);
}
...
...
@@ -53,7 +58,6 @@ static void print_part_info(Ndb* pNdb, NDBT_Table* pTab);
int
main
(
int
argc
,
char
**
argv
){
NDB_INIT
(
argv
[
0
]);
const
char
*
load_default_groups
[]
=
{
"mysql_cluster"
,
0
};
load_defaults
(
"my"
,
load_default_groups
,
&
argc
,
&
argv
);
int
ho_error
;
#ifndef DBUG_OFF
...
...
ndb/tools/drop_index.cpp
View file @
9fe02aa8
...
...
@@ -24,6 +24,9 @@
NDB_STD_OPTS_VARS
;
static
const
char
*
_dbname
=
"TEST_DB"
;
const
char
*
load_default_groups
[]
=
{
"mysql_cluster"
,
0
};
static
struct
my_option
my_long_options
[]
=
{
NDB_STD_OPTS
(
"ndb_desc"
),
...
...
@@ -38,13 +41,14 @@ static void usage()
"[<table> <index>]+
\n
"
\
"This program will drop index(es) in Ndb
\n
"
;
ndb_std_print_version
();
print_defaults
(
MYSQL_CONFIG_NAME
,
load_default_groups
);
puts
(
""
);
my_print_help
(
my_long_options
);
my_print_variables
(
my_long_options
);
}
int
main
(
int
argc
,
char
**
argv
){
NDB_INIT
(
argv
[
0
]);
const
char
*
load_default_groups
[]
=
{
"mysql_cluster"
,
0
};
load_defaults
(
"my"
,
load_default_groups
,
&
argc
,
&
argv
);
int
ho_error
;
#ifndef DBUG_OFF
...
...
ndb/tools/drop_tab.cpp
View file @
9fe02aa8
...
...
@@ -24,6 +24,9 @@
NDB_STD_OPTS_VARS
;
static
const
char
*
_dbname
=
"TEST_DB"
;
const
char
*
load_default_groups
[]
=
{
"mysql_cluster"
,
0
};
static
struct
my_option
my_long_options
[]
=
{
NDB_STD_OPTS
(
"ndb_desc"
),
...
...
@@ -37,14 +40,15 @@ static void usage()
char
desc
[]
=
"tabname
\n
"
\
"This program will drop one table in Ndb
\n
"
;
ndb_std_print_version
();
ndb_std_print_version
();
print_defaults
(
MYSQL_CONFIG_NAME
,
load_default_groups
);
puts
(
""
);
my_print_help
(
my_long_options
);
my_print_variables
(
my_long_options
);
}
int
main
(
int
argc
,
char
**
argv
){
NDB_INIT
(
argv
[
0
]);
const
char
*
load_default_groups
[]
=
{
"mysql_cluster"
,
0
};
load_defaults
(
"my"
,
load_default_groups
,
&
argc
,
&
argv
);
int
ho_error
;
#ifndef DBUG_OFF
...
...
ndb/tools/listTables.cpp
View file @
9fe02aa8
...
...
@@ -32,6 +32,8 @@ static Ndb* ndb = 0;
static
const
NdbDictionary
::
Dictionary
*
dic
=
0
;
static
int
_unqualified
=
0
;
const
char
*
load_default_groups
[]
=
{
"mysql_cluster"
,
0
};
static
void
fatal
(
char
const
*
fmt
,
...)
{
...
...
@@ -196,6 +198,8 @@ static void usage()
"To show all indexes for a table write table name as final argument
\n
"
\
" ex: ndb_show_tables T1
\n
"
;
ndb_std_print_version
();
print_defaults
(
MYSQL_CONFIG_NAME
,
load_default_groups
);
puts
(
""
);
my_print_help
(
my_long_options
);
my_print_variables
(
my_long_options
);
}
...
...
@@ -203,7 +207,6 @@ static void usage()
int
main
(
int
argc
,
char
**
argv
){
NDB_INIT
(
argv
[
0
]);
const
char
*
_tabname
;
const
char
*
load_default_groups
[]
=
{
"mysql_cluster"
,
0
};
load_defaults
(
"my"
,
load_default_groups
,
&
argc
,
&
argv
);
int
ho_error
;
#ifndef DBUG_OFF
...
...
ndb/tools/ndb_config.cpp
View file @
9fe02aa8
...
...
@@ -45,6 +45,8 @@ static const char * g_row_delimiter=" ";
static
const
char
*
g_config_file
=
0
;
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
;
...
...
@@ -114,6 +116,8 @@ static void usage()
char
desc
[]
=
"This program will retreive config options for a ndb cluster
\n
"
;
ndb_std_print_version
();
print_defaults
(
MYSQL_CONFIG_NAME
,
load_default_groups
);
puts
(
""
);
my_print_help
(
my_long_options
);
my_print_variables
(
my_long_options
);
}
...
...
@@ -176,7 +180,6 @@ static ndb_mgm_configuration* load_configuration();
int
main
(
int
argc
,
char
**
argv
){
NDB_INIT
(
argv
[
0
]);
const
char
*
load_default_groups
[]
=
{
"mysql_cluster"
,
0
};
load_defaults
(
"my"
,
load_default_groups
,
&
argc
,
&
argv
);
int
ho_error
;
if
((
ho_error
=
handle_options
(
&
argc
,
&
argv
,
my_long_options
,
...
...
ndb/tools/restore/restore_main.cpp
View file @
9fe02aa8
...
...
@@ -52,6 +52,8 @@ static int _restore_data = 0;
static
int
_restore_meta
=
0
;
BaseString
g_options
(
"ndb_restore"
);
const
char
*
load_default_groups
[]
=
{
"mysql_cluster"
,
"ndb_restore"
,
0
};
static
struct
my_option
my_long_options
[]
=
{
NDB_STD_OPTS
(
"ndb_restore"
),
...
...
@@ -104,6 +106,8 @@ static void usage()
{
short_usage_sub
();
ndb_std_print_version
();
print_defaults
(
MYSQL_CONFIG_NAME
,
load_default_groups
);
puts
(
""
);
my_print_help
(
my_long_options
);
my_print_variables
(
my_long_options
);
}
...
...
@@ -136,7 +140,6 @@ get_one_option(int optid, const struct my_option *opt __attribute__((unused)),
bool
readArguments
(
int
*
pargc
,
char
***
pargv
)
{
const
char
*
load_default_groups
[]
=
{
"mysql_cluster"
,
"ndb_restore"
,
0
};
load_defaults
(
"my"
,
load_default_groups
,
pargc
,
pargv
);
if
(
handle_options
(
pargc
,
pargv
,
my_long_options
,
get_one_option
))
{
...
...
ndb/tools/select_all.cpp
View file @
9fe02aa8
...
...
@@ -43,6 +43,8 @@ static const char* _delimiter = "\t";
static
int
_unqualified
,
_header
,
_parallelism
,
_useHexFormat
,
_lock
,
_order
,
_descending
;
const
char
*
load_default_groups
[]
=
{
"mysql_cluster"
,
0
};
static
struct
my_option
my_long_options
[]
=
{
NDB_STD_OPTS
(
"ndb_desc"
),
...
...
@@ -82,13 +84,14 @@ static void usage()
"It can also be used to dump the content of a table to file
\n
"
\
" ex: select_all --no-header --delimiter=';' T4 > T4.data
\n
"
;
ndb_std_print_version
();
print_defaults
(
MYSQL_CONFIG_NAME
,
load_default_groups
);
puts
(
""
);
my_print_help
(
my_long_options
);
my_print_variables
(
my_long_options
);
}
int
main
(
int
argc
,
char
**
argv
){
NDB_INIT
(
argv
[
0
]);
const
char
*
load_default_groups
[]
=
{
"mysql_cluster"
,
0
};
load_defaults
(
"my"
,
load_default_groups
,
&
argc
,
&
argv
);
const
char
*
_tabname
;
int
ho_error
;
...
...
ndb/tools/select_count.cpp
View file @
9fe02aa8
...
...
@@ -37,6 +37,9 @@ NDB_STD_OPTS_VARS;
static
const
char
*
_dbname
=
"TEST_DB"
;
static
int
_parallelism
=
240
;
static
int
_lock
=
0
;
const
char
*
load_default_groups
[]
=
{
"mysql_cluster"
,
0
};
static
struct
my_option
my_long_options
[]
=
{
NDB_STD_OPTS
(
"ndb_desc"
),
...
...
@@ -57,13 +60,14 @@ static void usage()
"tabname1 ... tabnameN
\n
"
\
"This program will count the number of records in tables
\n
"
;
ndb_std_print_version
();
print_defaults
(
MYSQL_CONFIG_NAME
,
load_default_groups
);
puts
(
""
);
my_print_help
(
my_long_options
);
my_print_variables
(
my_long_options
);
}
int
main
(
int
argc
,
char
**
argv
){
NDB_INIT
(
argv
[
0
]);
const
char
*
load_default_groups
[]
=
{
"mysql_cluster"
,
0
};
load_defaults
(
"my"
,
load_default_groups
,
&
argc
,
&
argv
);
int
ho_error
;
#ifndef DBUG_OFF
...
...
ndb/tools/waiter.cpp
View file @
9fe02aa8
...
...
@@ -38,6 +38,9 @@ NDB_STD_OPTS_VARS;
static
int
_no_contact
=
0
;
static
int
_not_started
=
0
;
static
int
_timeout
=
120
;
const
char
*
load_default_groups
[]
=
{
"mysql_cluster"
,
0
};
static
struct
my_option
my_long_options
[]
=
{
NDB_STD_OPTS
(
"ndb_desc"
),
...
...
@@ -56,13 +59,14 @@ static struct my_option my_long_options[] =
static
void
usage
()
{
ndb_std_print_version
();
print_defaults
(
MYSQL_CONFIG_NAME
,
load_default_groups
);
puts
(
""
);
my_print_help
(
my_long_options
);
my_print_variables
(
my_long_options
);
}
int
main
(
int
argc
,
char
**
argv
){
NDB_INIT
(
argv
[
0
]);
const
char
*
load_default_groups
[]
=
{
"mysql_cluster"
,
0
};
load_defaults
(
"my"
,
load_default_groups
,
&
argc
,
&
argv
);
const
char
*
_hostName
=
NULL
;
int
ho_error
;
...
...
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