summaryrefslogtreecommitdiff
path: root/ndb
diff options
context:
space:
mode:
authortomas@poseidon.ndb.mysql.com <>2004-12-08 23:00:08 +0000
committertomas@poseidon.ndb.mysql.com <>2004-12-08 23:00:08 +0000
commit11e048195516d4f97085d88bcfa15f25b24d346c (patch)
tree052763ad16050432b5e1ed5ae43c5786a7fd74a5 /ndb
parentbe4de23f3c668e4c0eaf71dbbe66c354766052d7 (diff)
downloadmariadb-git-11e048195516d4f97085d88bcfa15f25b24d346c.tar.gz
added possibility for comment into management client
added sleep command to management client all for testing purposes
Diffstat (limited to 'ndb')
-rw-r--r--ndb/src/mgmclient/CommandInterpreter.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/ndb/src/mgmclient/CommandInterpreter.cpp b/ndb/src/mgmclient/CommandInterpreter.cpp
index 53c0e3b673e..1d4d66df961 100644
--- a/ndb/src/mgmclient/CommandInterpreter.cpp
+++ b/ndb/src/mgmclient/CommandInterpreter.cpp
@@ -499,7 +499,8 @@ CommandInterpreter::execute_impl(const char *_line)
line = my_strdup(_line,MYF(MY_WME));
My_auto_ptr<char> ptr(line);
- if (emptyString(line)) {
+ if (emptyString(line) ||
+ line[0] == '#') {
DBUG_RETURN(true);
}
@@ -516,6 +517,11 @@ CommandInterpreter::execute_impl(const char *_line)
executeConnect(allAfterFirstToken);
DBUG_RETURN(true);
}
+ else if (strcasecmp(firstToken, "SLEEP") == 0) {
+ if (allAfterFirstToken)
+ sleep(atoi(allAfterFirstToken));
+ DBUG_RETURN(true);
+ }
else if((strcasecmp(firstToken, "QUIT") == 0 ||
strcasecmp(firstToken, "EXIT") == 0 ||
strcasecmp(firstToken, "BYE") == 0) &&