summaryrefslogtreecommitdiffstats
path: root/ctdb/tools/ctdb.c
diff options
context:
space:
mode:
Diffstat (limited to 'ctdb/tools/ctdb.c')
-rw-r--r--ctdb/tools/ctdb.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/ctdb/tools/ctdb.c b/ctdb/tools/ctdb.c
index 1957617584..793e98f132 100644
--- a/ctdb/tools/ctdb.c
+++ b/ctdb/tools/ctdb.c
@@ -5310,15 +5310,6 @@ int main(int argc, const char *argv[])
signal(SIGALRM, ctdb_alarm);
alarm(options.maxruntime);
- /* setup the node number to contact */
- if (nodestring != NULL) {
- if (strcmp(nodestring, "all") == 0) {
- options.pnn = CTDB_BROADCAST_ALL;
- } else {
- options.pnn = strtoul(nodestring, NULL, 0);
- }
- }
-
control = extra_argv[0];
ev = event_context_init(NULL);
@@ -5365,6 +5356,15 @@ int main(int argc, const char *argv[])
exit(1);
}
+ /* setup the node number to contact */
+ if (nodestring != NULL) {
+ if (strcmp(nodestring, "all") == 0) {
+ options.pnn = CTDB_BROADCAST_ALL;
+ } else {
+ options.pnn = strtoul(nodestring, NULL, 0);
+ }
+ }
+
/* verify the node exists */
verify_node(ctdb);