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
6aebd056
Commit
6aebd056
authored
Nov 22, 2004
by
unknown
Browse files
Options
Browse Files
Download
Plain Diff
Merge tulin@bk-internal.mysql.com:/home/bk/mysql-4.1
into poseidon.ndb.mysql.com:/home/tomas/mysql-4.1
parents
abb53b6f
3e779698
Changes
13
Hide whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
31 additions
and
21 deletions
+31
-21
ndb/include/util/ndb_opts.h
ndb/include/util/ndb_opts.h
+12
-6
ndb/src/kernel/vm/Configuration.cpp
ndb/src/kernel/vm/Configuration.cpp
+1
-1
ndb/src/mgmclient/main.cpp
ndb/src/mgmclient/main.cpp
+1
-1
ndb/src/mgmsrv/main.cpp
ndb/src/mgmsrv/main.cpp
+8
-4
ndb/tools/delete_all.cpp
ndb/tools/delete_all.cpp
+1
-1
ndb/tools/desc.cpp
ndb/tools/desc.cpp
+1
-1
ndb/tools/drop_index.cpp
ndb/tools/drop_index.cpp
+1
-1
ndb/tools/drop_tab.cpp
ndb/tools/drop_tab.cpp
+1
-1
ndb/tools/listTables.cpp
ndb/tools/listTables.cpp
+1
-1
ndb/tools/restore/restore_main.cpp
ndb/tools/restore/restore_main.cpp
+1
-1
ndb/tools/select_all.cpp
ndb/tools/select_all.cpp
+1
-1
ndb/tools/select_count.cpp
ndb/tools/select_count.cpp
+1
-1
ndb/tools/waiter.cpp
ndb/tools/waiter.cpp
+1
-1
No files found.
ndb/include/util/ndb_opts.h
View file @
6aebd056
...
@@ -32,10 +32,13 @@
...
@@ -32,10 +32,13 @@
0, 0, 0, GET_NO_ARG, NO_ARG, 0, 0, 0, 0, 0, 0 }, \
0, 0, 0, GET_NO_ARG, NO_ARG, 0, 0, 0, 0, 0, 0 }, \
{ "version", 'V', "Output version information and exit.", 0, 0, 0, \
{ "version", 'V', "Output version information and exit.", 0, 0, 0, \
GET_NO_ARG, NO_ARG, 0, 0, 0, 0, 0, 0 }, \
GET_NO_ARG, NO_ARG, 0, 0, 0, 0, 0, 0 }, \
{ "
connect-
string", 'c', \
{ "
ndb-connect
string", 'c', \
"Set connect string for connecting to ndb_mgmd. " \
"Set connect string for connecting to ndb_mgmd. " \
"<constr>=\"host=<hostname:port>[;nodeid=<id>]\". " \
"Syntax: \"[nodeid=<id>;][host=]<hostname>[:<port>]\". " \
"Overides specifying entries in NDB_CONNECTSTRING and config file", \
"Overides specifying entries in NDB_CONNECTSTRING and Ndb.cfg", \
(gptr*) &opt_connect_str, (gptr*) &opt_connect_str, 0, \
GET_STR, REQUIRED_ARG, 0, 0, 0, 0, 0, 0 },\
{ "connect-string", 'c', "same as --ndb-connectstring",\
(gptr*) &opt_connect_str, (gptr*) &opt_connect_str, 0, \
(gptr*) &opt_connect_str, (gptr*) &opt_connect_str, 0, \
GET_STR, REQUIRED_ARG, 0, 0, 0, 0, 0, 0 }
GET_STR, REQUIRED_ARG, 0, 0, 0, 0, 0, 0 }
#else
#else
...
@@ -46,11 +49,14 @@
...
@@ -46,11 +49,14 @@
0, 0, 0, GET_NO_ARG, NO_ARG, 0, 0, 0, 0, 0, 0 }, \
0, 0, 0, GET_NO_ARG, NO_ARG, 0, 0, 0, 0, 0, 0 }, \
{ "version", 'V', "Output version information and exit.", 0, 0, 0, \
{ "version", 'V', "Output version information and exit.", 0, 0, 0, \
GET_NO_ARG, NO_ARG, 0, 0, 0, 0, 0, 0 }, \
GET_NO_ARG, NO_ARG, 0, 0, 0, 0, 0, 0 }, \
{ "
connect-
string", 'c', \
{ "
ndb-connect
string", 'c', \
"Set connect string for connecting to ndb_mgmd. " \
"Set connect string for connecting to ndb_mgmd. " \
"
<constr>=\"host=<hostname:port>[;nodeid=<id
>]\". " \
"
Syntax: \"[nodeid=<id>;][host=]<hostname>[:<port
>]\". " \
"Overides specifying entries in NDB_CONNECTSTRING and
config file
", \
"Overides specifying entries in NDB_CONNECTSTRING and
Ndb.cfg
", \
(gptr*) &opt_connect_str, (gptr*) &opt_connect_str, 0, \
(gptr*) &opt_connect_str, (gptr*) &opt_connect_str, 0, \
GET_STR, REQUIRED_ARG, 0, 0, 0, 0, 0, 0 },\
{ "connect-string", 'c', "same as --ndb-connectstring",\
(gptr*) &opt_connect_str, (gptr*) &opt_connect_str, 0,\
GET_STR, REQUIRED_ARG, 0, 0, 0, 0, 0, 0 }
GET_STR, REQUIRED_ARG, 0, 0, 0, 0, 0, 0 }
#endif
#endif
...
...
ndb/src/kernel/vm/Configuration.cpp
View file @
6aebd056
...
@@ -108,7 +108,7 @@ get_one_option(int optid, const struct my_option *opt __attribute__((unused)),
...
@@ -108,7 +108,7 @@ get_one_option(int optid, const struct my_option *opt __attribute__((unused)),
bool
bool
Configuration
::
init
(
int
argc
,
char
**
argv
)
Configuration
::
init
(
int
argc
,
char
**
argv
)
{
{
const
char
*
load_default_groups
[]
=
{
"ndbd"
,
0
};
const
char
*
load_default_groups
[]
=
{
"
mysql_cluster"
,
"
ndbd"
,
0
};
load_defaults
(
"my"
,
load_default_groups
,
&
argc
,
&
argv
);
load_defaults
(
"my"
,
load_default_groups
,
&
argc
,
&
argv
);
int
ho_error
;
int
ho_error
;
...
...
ndb/src/mgmclient/main.cpp
View file @
6aebd056
...
@@ -138,7 +138,7 @@ int main(int argc, char** argv){
...
@@ -138,7 +138,7 @@ int main(int argc, char** argv){
NDB_INIT
(
argv
[
0
]);
NDB_INIT
(
argv
[
0
]);
const
char
*
_host
=
0
;
const
char
*
_host
=
0
;
int
_port
=
0
;
int
_port
=
0
;
const
char
*
load_default_groups
[]
=
{
"ndb_mgm"
,
0
};
const
char
*
load_default_groups
[]
=
{
"
mysql_cluster"
,
"
ndb_mgm"
,
0
};
load_defaults
(
"my"
,
load_default_groups
,
&
argc
,
&
argv
);
load_defaults
(
"my"
,
load_default_groups
,
&
argc
,
&
argv
);
int
ho_error
;
int
ho_error
;
...
...
ndb/src/mgmsrv/main.cpp
View file @
6aebd056
...
@@ -110,10 +110,14 @@ static struct my_option my_long_options[] =
...
@@ -110,10 +110,14 @@ static struct my_option my_long_options[] =
0
,
0
,
0
,
GET_NO_ARG
,
NO_ARG
,
0
,
0
,
0
,
0
,
0
,
0
},
0
,
0
,
0
,
GET_NO_ARG
,
NO_ARG
,
0
,
0
,
0
,
0
,
0
,
0
},
{
"version"
,
'V'
,
"Output version information and exit."
,
0
,
0
,
0
,
{
"version"
,
'V'
,
"Output version information and exit."
,
0
,
0
,
0
,
GET_NO_ARG
,
NO_ARG
,
0
,
0
,
0
,
0
,
0
,
0
},
GET_NO_ARG
,
NO_ARG
,
0
,
0
,
0
,
0
,
0
,
0
},
{
"
connect-
string"
,
1023
,
{
"
ndb-connect
string"
,
1023
,
"Set connect string for connecting to ndb_mgmd. "
"Set connect string for connecting to ndb_mgmd. "
"<constr>=
\"
host=<hostname:port>[;nodeid=<id>]
\"
. "
"Syntax:
\"
[nodeid=<id>;][host=]<hostname>[:<port>]
\"
. "
"Overides specifying entries in NDB_CONNECTSTRING and config file"
,
"Overides specifying entries in NDB_CONNECTSTRING and Ndb.cfg"
,
(
gptr
*
)
&
opt_connect_str
,
(
gptr
*
)
&
opt_connect_str
,
0
,
GET_STR
,
REQUIRED_ARG
,
0
,
0
,
0
,
0
,
0
,
0
},
{
"connect-string"
,
1023
,
"same as --ndb-connectstring."
,
(
gptr
*
)
&
opt_connect_str
,
(
gptr
*
)
&
opt_connect_str
,
0
,
(
gptr
*
)
&
opt_connect_str
,
(
gptr
*
)
&
opt_connect_str
,
0
,
GET_STR
,
REQUIRED_ARG
,
0
,
0
,
0
,
0
,
0
,
0
},
GET_STR
,
REQUIRED_ARG
,
0
,
0
,
0
,
0
,
0
,
0
},
{
"config-file"
,
'f'
,
"Specify cluster configuration file"
,
{
"config-file"
,
'f'
,
"Specify cluster configuration file"
,
...
@@ -196,7 +200,7 @@ int main(int argc, char** argv)
...
@@ -196,7 +200,7 @@ int main(int argc, char** argv)
global_mgmt_server_check
=
1
;
global_mgmt_server_check
=
1
;
glob
.
config_filename
=
"config.ini"
;
glob
.
config_filename
=
"config.ini"
;
const
char
*
load_default_groups
[]
=
{
"ndb_mgmd"
,
0
};
const
char
*
load_default_groups
[]
=
{
"
mysql_cluster"
,
"
ndb_mgmd"
,
0
};
load_defaults
(
"my"
,
load_default_groups
,
&
argc
,
&
argv
);
load_defaults
(
"my"
,
load_default_groups
,
&
argc
,
&
argv
);
int
ho_error
;
int
ho_error
;
...
...
ndb/tools/delete_all.cpp
View file @
6aebd056
...
@@ -67,7 +67,7 @@ get_one_option(int optid, const struct my_option *opt __attribute__((unused)),
...
@@ -67,7 +67,7 @@ get_one_option(int optid, const struct my_option *opt __attribute__((unused)),
int
main
(
int
argc
,
char
**
argv
){
int
main
(
int
argc
,
char
**
argv
){
NDB_INIT
(
argv
[
0
]);
NDB_INIT
(
argv
[
0
]);
const
char
*
load_default_groups
[]
=
{
"
ndb_tools
"
,
0
};
const
char
*
load_default_groups
[]
=
{
"
mysql_cluster
"
,
0
};
load_defaults
(
"my"
,
load_default_groups
,
&
argc
,
&
argv
);
load_defaults
(
"my"
,
load_default_groups
,
&
argc
,
&
argv
);
int
ho_error
;
int
ho_error
;
if
((
ho_error
=
handle_options
(
&
argc
,
&
argv
,
my_long_options
,
get_one_option
)))
if
((
ho_error
=
handle_options
(
&
argc
,
&
argv
,
my_long_options
,
get_one_option
)))
...
...
ndb/tools/desc.cpp
View file @
6aebd056
...
@@ -67,7 +67,7 @@ get_one_option(int optid, const struct my_option *opt __attribute__((unused)),
...
@@ -67,7 +67,7 @@ get_one_option(int optid, const struct my_option *opt __attribute__((unused)),
int
main
(
int
argc
,
char
**
argv
){
int
main
(
int
argc
,
char
**
argv
){
NDB_INIT
(
argv
[
0
]);
NDB_INIT
(
argv
[
0
]);
const
char
*
load_default_groups
[]
=
{
"
ndb_tools
"
,
0
};
const
char
*
load_default_groups
[]
=
{
"
mysql_cluster
"
,
0
};
load_defaults
(
"my"
,
load_default_groups
,
&
argc
,
&
argv
);
load_defaults
(
"my"
,
load_default_groups
,
&
argc
,
&
argv
);
int
ho_error
;
int
ho_error
;
if
((
ho_error
=
handle_options
(
&
argc
,
&
argv
,
my_long_options
,
get_one_option
)))
if
((
ho_error
=
handle_options
(
&
argc
,
&
argv
,
my_long_options
,
get_one_option
)))
...
...
ndb/tools/drop_index.cpp
View file @
6aebd056
...
@@ -64,7 +64,7 @@ get_one_option(int optid, const struct my_option *opt __attribute__((unused)),
...
@@ -64,7 +64,7 @@ get_one_option(int optid, const struct my_option *opt __attribute__((unused)),
int
main
(
int
argc
,
char
**
argv
){
int
main
(
int
argc
,
char
**
argv
){
NDB_INIT
(
argv
[
0
]);
NDB_INIT
(
argv
[
0
]);
const
char
*
load_default_groups
[]
=
{
"
ndb_tools
"
,
0
};
const
char
*
load_default_groups
[]
=
{
"
mysql_cluster
"
,
0
};
load_defaults
(
"my"
,
load_default_groups
,
&
argc
,
&
argv
);
load_defaults
(
"my"
,
load_default_groups
,
&
argc
,
&
argv
);
int
ho_error
;
int
ho_error
;
if
((
ho_error
=
handle_options
(
&
argc
,
&
argv
,
my_long_options
,
get_one_option
)))
if
((
ho_error
=
handle_options
(
&
argc
,
&
argv
,
my_long_options
,
get_one_option
)))
...
...
ndb/tools/drop_tab.cpp
View file @
6aebd056
...
@@ -64,7 +64,7 @@ get_one_option(int optid, const struct my_option *opt __attribute__((unused)),
...
@@ -64,7 +64,7 @@ get_one_option(int optid, const struct my_option *opt __attribute__((unused)),
int
main
(
int
argc
,
char
**
argv
){
int
main
(
int
argc
,
char
**
argv
){
NDB_INIT
(
argv
[
0
]);
NDB_INIT
(
argv
[
0
]);
const
char
*
load_default_groups
[]
=
{
"
ndb_tools
"
,
0
};
const
char
*
load_default_groups
[]
=
{
"
mysql_cluster
"
,
0
};
load_defaults
(
"my"
,
load_default_groups
,
&
argc
,
&
argv
);
load_defaults
(
"my"
,
load_default_groups
,
&
argc
,
&
argv
);
int
ho_error
;
int
ho_error
;
if
((
ho_error
=
handle_options
(
&
argc
,
&
argv
,
my_long_options
,
get_one_option
)))
if
((
ho_error
=
handle_options
(
&
argc
,
&
argv
,
my_long_options
,
get_one_option
)))
...
...
ndb/tools/listTables.cpp
View file @
6aebd056
...
@@ -220,7 +220,7 @@ get_one_option(int optid, const struct my_option *opt __attribute__((unused)),
...
@@ -220,7 +220,7 @@ get_one_option(int optid, const struct my_option *opt __attribute__((unused)),
int
main
(
int
argc
,
char
**
argv
){
int
main
(
int
argc
,
char
**
argv
){
NDB_INIT
(
argv
[
0
]);
NDB_INIT
(
argv
[
0
]);
const
char
*
_tabname
;
const
char
*
_tabname
;
const
char
*
load_default_groups
[]
=
{
"
ndb_tools
"
,
0
};
const
char
*
load_default_groups
[]
=
{
"
mysql_cluster
"
,
0
};
load_defaults
(
"my"
,
load_default_groups
,
&
argc
,
&
argv
);
load_defaults
(
"my"
,
load_default_groups
,
&
argc
,
&
argv
);
int
ho_error
;
int
ho_error
;
if
((
ho_error
=
handle_options
(
&
argc
,
&
argv
,
my_long_options
,
get_one_option
)))
if
((
ho_error
=
handle_options
(
&
argc
,
&
argv
,
my_long_options
,
get_one_option
)))
...
...
ndb/tools/restore/restore_main.cpp
View file @
6aebd056
...
@@ -143,7 +143,7 @@ get_one_option(int optid, const struct my_option *opt __attribute__((unused)),
...
@@ -143,7 +143,7 @@ get_one_option(int optid, const struct my_option *opt __attribute__((unused)),
bool
bool
readArguments
(
int
*
pargc
,
char
***
pargv
)
readArguments
(
int
*
pargc
,
char
***
pargv
)
{
{
const
char
*
load_default_groups
[]
=
{
"
ndb_tools
"
,
"ndb_restore"
,
0
};
const
char
*
load_default_groups
[]
=
{
"
mysql_cluster
"
,
"ndb_restore"
,
0
};
load_defaults
(
"my"
,
load_default_groups
,
pargc
,
pargv
);
load_defaults
(
"my"
,
load_default_groups
,
pargc
,
pargv
);
if
(
handle_options
(
pargc
,
pargv
,
my_long_options
,
get_one_option
))
if
(
handle_options
(
pargc
,
pargv
,
my_long_options
,
get_one_option
))
{
{
...
...
ndb/tools/select_all.cpp
View file @
6aebd056
...
@@ -105,7 +105,7 @@ get_one_option(int optid, const struct my_option *opt __attribute__((unused)),
...
@@ -105,7 +105,7 @@ get_one_option(int optid, const struct my_option *opt __attribute__((unused)),
int
main
(
int
argc
,
char
**
argv
){
int
main
(
int
argc
,
char
**
argv
){
NDB_INIT
(
argv
[
0
]);
NDB_INIT
(
argv
[
0
]);
const
char
*
load_default_groups
[]
=
{
"
ndb_tools
"
,
0
};
const
char
*
load_default_groups
[]
=
{
"
mysql_cluster
"
,
0
};
load_defaults
(
"my"
,
load_default_groups
,
&
argc
,
&
argv
);
load_defaults
(
"my"
,
load_default_groups
,
&
argc
,
&
argv
);
const
char
*
_tabname
;
const
char
*
_tabname
;
int
ho_error
;
int
ho_error
;
...
...
ndb/tools/select_count.cpp
View file @
6aebd056
...
@@ -83,7 +83,7 @@ get_one_option(int optid, const struct my_option *opt __attribute__((unused)),
...
@@ -83,7 +83,7 @@ get_one_option(int optid, const struct my_option *opt __attribute__((unused)),
int
main
(
int
argc
,
char
**
argv
){
int
main
(
int
argc
,
char
**
argv
){
NDB_INIT
(
argv
[
0
]);
NDB_INIT
(
argv
[
0
]);
const
char
*
load_default_groups
[]
=
{
"
ndb_tools
"
,
0
};
const
char
*
load_default_groups
[]
=
{
"
mysql_cluster
"
,
0
};
load_defaults
(
"my"
,
load_default_groups
,
&
argc
,
&
argv
);
load_defaults
(
"my"
,
load_default_groups
,
&
argc
,
&
argv
);
int
ho_error
;
int
ho_error
;
if
((
ho_error
=
handle_options
(
&
argc
,
&
argv
,
my_long_options
,
get_one_option
)))
if
((
ho_error
=
handle_options
(
&
argc
,
&
argv
,
my_long_options
,
get_one_option
)))
...
...
ndb/tools/waiter.cpp
View file @
6aebd056
...
@@ -75,7 +75,7 @@ get_one_option(int optid, const struct my_option *opt __attribute__((unused)),
...
@@ -75,7 +75,7 @@ get_one_option(int optid, const struct my_option *opt __attribute__((unused)),
int
main
(
int
argc
,
char
**
argv
){
int
main
(
int
argc
,
char
**
argv
){
NDB_INIT
(
argv
[
0
]);
NDB_INIT
(
argv
[
0
]);
const
char
*
load_default_groups
[]
=
{
"
ndb_tools
"
,
0
};
const
char
*
load_default_groups
[]
=
{
"
mysql_cluster
"
,
0
};
load_defaults
(
"my"
,
load_default_groups
,
&
argc
,
&
argv
);
load_defaults
(
"my"
,
load_default_groups
,
&
argc
,
&
argv
);
const
char
*
_hostName
=
NULL
;
const
char
*
_hostName
=
NULL
;
int
ho_error
;
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