diff options
author | paul@snake-hub.snake.net <> | 2006-02-28 14:00:17 -0600 |
---|---|---|
committer | paul@snake-hub.snake.net <> | 2006-02-28 14:00:17 -0600 |
commit | fc8ed82da4ed31e24647cd41fc77dcc112fd811a (patch) | |
tree | 2753c62e9a97dc72d18c60bfecbe08fb27e8176f /client | |
parent | 6d4dc91bbfcdc00334a850bb4fdd5e6336e1b48f (diff) | |
download | mariadb-git-fc8ed82da4ed31e24647cd41fc77dcc112fd811a.tar.gz |
mysqltest.c:
Correct/clarify comments.
Diffstat (limited to 'client')
-rw-r--r-- | client/mysqltest.c | 19 |
1 files changed, 10 insertions, 9 deletions
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 <seconds> - real_sleep - + real_sleep <seconds> + + 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) |