From 9099fb2d063b537f7a8c94d18dbe163d4945f955 Mon Sep 17 00:00:00 2001 From: unknown Date: Tue, 28 Feb 2006 14:00:17 -0600 Subject: mysqltest.c: Correct/clarify comments. client/mysqltest.c: Correct/clarify comments. --- client/mysqltest.c | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) (limited to 'client/mysqltest.c') diff --git a/client/mysqltest.c b/client/mysqltest.c index 805c9330c6a..83be283a050 100644 --- a/client/mysqltest.c +++ b/client/mysqltest.c @@ -320,13 +320,6 @@ const char *command_names[]= "connection", "query", "connect", - /* the difference between sleep and real_sleep is that sleep will use - the delay from command line (--sleep) if there is one. - real_sleep always uses delay from mysqltest's command line argument. - the logic is that sometimes delays are cpu-dependent (and --sleep - can be used to set this delay. real_sleep is used for cpu-independent - delays - */ "sleep", "real_sleep", "inc", @@ -1536,11 +1529,19 @@ int do_disable_rpl_parse(struct st_query *query __attribute__((unused))) do_sleep() q called command real_sleep use the value from opt_sleep as number of seconds to sleep + if real_sleep is false DESCRIPTION sleep - real_sleep - + real_sleep + + The difference between the sleep and real_sleep commands is that sleep + uses the delay from the --sleep command-line option if there is one. + (If the --sleep option is not given, the sleep command uses the delay + specified by its argument.) The real_sleep command always uses the + delay specified by its argument. The logic is that sometimes delays are + cpu-dependent, and --sleep can be used to set this delay. real_sleep is + used for cpu-independent delays. */ int do_sleep(struct st_query *query, my_bool real_sleep) -- cgit v1.2.1 From 046530d5bc1a91131bbebaaab043486d5cb03988 Mon Sep 17 00:00:00 2001 From: unknown Date: Tue, 28 Feb 2006 14:04:21 -0600 Subject: mysqltest.c: Fix reference to incorrect (non-existent) options in comment. client/mysqltest.c: Fix reference to incorrect (non-existent) options in comment. --- client/mysqltest.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'client/mysqltest.c') diff --git a/client/mysqltest.c b/client/mysqltest.c index 3493a781875..1ddbe76700e 100644 --- a/client/mysqltest.c +++ b/client/mysqltest.c @@ -4316,7 +4316,7 @@ void get_query_type(struct st_query* q) q->type=(enum enum_commands) type; /* Found command */ /* If queries are disabled, only recognize - --enable-queries and --disable-queries + --enable_parsing and --disable_parsing */ if (parsing_disabled && q->type != Q_ENABLE_PARSING && q->type != Q_DISABLE_PARSING) -- cgit v1.2.1