diff options
| author | Kaushal M <kaushal@gluster.com> | 2011-09-06 17:18:20 +0530 |
|---|---|---|
| committer | gluster-ant <bugzilla-bot@gluster.org> | 2011-09-06 17:18:20 +0530 |
| commit | b5faec808807ad19adae5d2a4be6fc5c87f7b989 (patch) | |
| tree | 09d4a2e8c728f751616b3075138a4d56e95264e2 /cli/src/cli-cmd.h | |
| parent | a82d4d8e660b6d72044797639a4d1f21231a3685 (diff) | |
glusterd: run 'volume top read-perf/write-perf' in different thread
Runs the 'volume top read-perf/write-perf' operations in a different
thread without blocking glusterd. Prvents glusterd from being
unresponsive when large values of 'bs' and 'count' are given.
Also increase cli timeout for top/profile commands , from 120s to 300s
to allow large i/o top read-perf and write-perf to return result.
Change-Id: I4b7de1d735f33643d836772db7f25133f112b75a
BUG: 2720
Reviewed-on: http://review.gluster.com/375
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Shishir Gowda <shishirng@gluster.com>
Diffstat (limited to 'cli/src/cli-cmd.h')
| -rw-r--r-- | cli/src/cli-cmd.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cli/src/cli-cmd.h b/cli/src/cli-cmd.h index 1878571fa3..82e0ff113a 100644 --- a/cli/src/cli-cmd.h +++ b/cli/src/cli-cmd.h @@ -83,7 +83,7 @@ struct cli_cmd_word *cli_cmd_nextword (struct cli_cmd_word *word, const char *text); void cli_cmd_tokens_destroy (char **tokens); -int cli_cmd_await_response (); +int cli_cmd_await_response (unsigned time); int cli_cmd_broadcast_response (int32_t status); |
