diff options
Diffstat (limited to 'cli/src/cli-cmd.c')
| -rw-r--r-- | cli/src/cli-cmd.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/cli/src/cli-cmd.c b/cli/src/cli-cmd.c index 7a697603e..b81f75b5b 100644 --- a/cli/src/cli-cmd.c +++ b/cli/src/cli-cmd.c @@ -231,11 +231,9 @@ cli_cmds_register (struct cli_state *state) if (ret) goto out; -#ifdef HAVE_BD_XLATOR - ret = cli_cmd_bd_register (state); + ret = cli_cmd_snapshot_register (state); if (ret) goto out; -#endif out: return ret; } @@ -365,8 +363,11 @@ cli_cmd_submit (void *req, call_frame_t *frame, int ret = -1; unsigned timeout = 0; - timeout = (GLUSTER_CLI_PROFILE_VOLUME == procnum) ? - CLI_TOP_CMD_TIMEOUT : CLI_DEFAULT_CMD_TIMEOUT; + if ((GLUSTER_CLI_PROFILE_VOLUME == procnum) || + (GLUSTER_CLI_HEAL_VOLUME == procnum)) + timeout = CLI_TEN_MINUTES_TIMEOUT; + else + timeout = CLI_DEFAULT_CMD_TIMEOUT; cli_cmd_lock (); cmd_sent = 0; |
