summaryrefslogtreecommitdiff
path: root/ndb/src/mgmsrv/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'ndb/src/mgmsrv/main.cpp')
-rw-r--r--ndb/src/mgmsrv/main.cpp32
1 files changed, 6 insertions, 26 deletions
diff --git a/ndb/src/mgmsrv/main.cpp b/ndb/src/mgmsrv/main.cpp
index ce79ccb732b..61b83b86538 100644
--- a/ndb/src/mgmsrv/main.cpp
+++ b/ndb/src/mgmsrv/main.cpp
@@ -91,8 +91,7 @@ extern EventLogger g_eventLogger;
extern int global_mgmt_server_check;
enum ndb_mgmd_options {
- NDB_STD_OPTS_OPTIONS,
- OPT_INTERACTIVE,
+ OPT_INTERACTIVE = NDB_STD_OPTIONS_LAST,
OPT_NO_NODEID_CHECKS,
OPT_NO_DAEMON
};
@@ -139,14 +138,10 @@ static void short_usage_sub(void)
{
printf("Usage: %s [OPTIONS]\n", my_progname);
}
-static void print_version()
-{
- printf("MySQL distrib %s, for %s (%s)\n",MYSQL_SERVER_VERSION,SYSTEM_TYPE,MACHINE_TYPE);
-}
static void usage()
{
short_usage_sub();
- print_version();
+ ndb_std_print_version();
my_print_help(my_long_options);
my_print_variables(my_long_options);
}
@@ -154,30 +149,15 @@ static my_bool
get_one_option(int optid, const struct my_option *opt __attribute__((unused)),
char *argument)
{
- switch (optid) {
- case '#':
- DBUG_PUSH(argument ? argument : "d:t:O,/tmp/ndb_mgmd.trace");
- break;
- case 'V':
- print_version();
- exit(0);
+ ndb_std_get_one_option(optid, opt, argument ? argument :
+ "d:t:O,/tmp/ndb_mgmd.trace");
#if NDB_VERSION_MAJOR <= 4
+ switch (optid) {
case 'c':
printf("Warning: -c will be removed in 5.0, use -f instead\n");
break;
-#endif
- case OPT_NDB_SHM:
-#ifndef NDB_SHM_TRANSPORTER
- printf("Warning: binary not compiled with shared memory support,\n"
- "use configure option --with-ndb-shm to enable support.\n"
- "Tcp connections will now be used instead\n");
- opt_ndb_shm= 0;
-#endif
- break;
- case '?':
- usage();
- exit(0);
}
+#endif
return 0;
}