Below is the list of changes that have just been committed into a local
5.0 repository of hartmut. When hartmut does a push these changes will
be propagated to the main repository and, within 24 hours after the
push, to the public repository.
For information on how to access the public repository
see http://dev.mysql.com/doc/mysql/en/installing-source-tree.html
ChangeSet@stripped, 2006-09-13 23:40:28+02:00, hartmut@stripped +1 -0
Make ndb_config use the same default options
as any other ndb tool in the distribution (Bug #22295)
ndb/tools/ndb_config.cpp@stripped, 2006-09-13 23:40:26+02:00, hartmut@stripped +6 -38
Make ndb_config use the same default options
as any other ndb tool in the distribution (Bug #22295)
# This is a BitKeeper patch. What follows are the unified diffs for the
# set of deltas contained in the patch. The rest of the patch, the part
# that BitKeeper cares about, is below these diffs.
# User: hartmut
# Host: linux.site
# Root: /home/hartmut/projects/mysql/dev/teamtrees/mysql-5.0-ndb
--- 1.15/ndb/tools/ndb_config.cpp 2006-09-13 23:40:36 +02:00
+++ 1.16/ndb/tools/ndb_config.cpp 2006-09-13 23:40:36 +02:00
@@ -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 @@
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},
@@ -120,21 +103,6 @@
puts("");
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;
}
/**
| Thread |
|---|
| • bk commit into 5.0 tree (hartmut:1.2262) BUG#22295 | 'Hartmut Holzgraefe' | 13 Sep |