summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorunknown <tomas@poseidon.ndb.mysql.com>2006-05-22 16:27:37 +0200
committerunknown <tomas@poseidon.ndb.mysql.com>2006-05-22 16:27:37 +0200
commit282d904dd8b05d1b6ba936570a4efa11b2b24e0a (patch)
treeac950a864b10333d4845160c7b011000fc077032
parent6ee68c82fbf92624036b5b54dcf22c522ac4556f (diff)
downloadmariadb-git-282d904dd8b05d1b6ba936570a4efa11b2b24e0a.tar.gz
ndb: corrected option handeling to give correct help in ndbd
-rw-r--r--ndb/src/kernel/vm/Configuration.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/ndb/src/kernel/vm/Configuration.cpp b/ndb/src/kernel/vm/Configuration.cpp
index b73a82df66b..7d1a5ed2ff4 100644
--- a/ndb/src/kernel/vm/Configuration.cpp
+++ b/ndb/src/kernel/vm/Configuration.cpp
@@ -49,7 +49,9 @@ extern EventLogger g_eventLogger;
enum ndbd_options {
OPT_INITIAL = NDB_STD_OPTIONS_LAST,
OPT_NODAEMON,
- OPT_FOREGROUND
+ OPT_FOREGROUND,
+ OPT_NOWAIT_NODES,
+ OPT_INITIAL_START
};
NDB_STD_OPTS_VARS;
@@ -88,11 +90,11 @@ static struct my_option my_long_options[] =
" (implies --nodaemon)",
(gptr*) &_foreground, (gptr*) &_foreground, 0,
GET_BOOL, NO_ARG, 0, 0, 0, 0, 0, 0 },
- { "nowait-nodes", NO_ARG,
+ { "nowait-nodes", OPT_NOWAIT_NODES,
"Nodes that will not be waited for during start",
(gptr*) &_nowait_nodes, (gptr*) &_nowait_nodes, 0,
GET_STR, REQUIRED_ARG, 0, 0, 0, 0, 0, 0 },
- { "initial-start", NO_ARG,
+ { "initial-start", OPT_INITIAL_START,
"Perform initial start",
(gptr*) &_initialstart, (gptr*) &_initialstart, 0,
GET_BOOL, NO_ARG, 0, 0, 0, 0, 0, 0 },