summaryrefslogtreecommitdiffstats
path: root/cli/src/cli-rpc-ops.c
diff options
context:
space:
mode:
Diffstat (limited to 'cli/src/cli-rpc-ops.c')
-rw-r--r--cli/src/cli-rpc-ops.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/cli/src/cli-rpc-ops.c b/cli/src/cli-rpc-ops.c
index b56457ecf63..4efb78046ab 100644
--- a/cli/src/cli-rpc-ops.c
+++ b/cli/src/cli-rpc-ops.c
@@ -4908,10 +4908,9 @@ gf_cli_attach_tier (call_frame_t *frame, xlator_t *this,
int ret = 0;
dict_t *dict = NULL;
dict_t *newdict = NULL;
- char *tierwords[] = {"volume", "rebalance", "",
- "tier", "start", NULL};
+ char *tierwords[] = {"volume", "tier", "",
+ "start", NULL};
const char **words = (const char **)tierwords;
- int wordcount = 5;
char *volname = NULL;
cli_local_t *local = NULL;
cli_local_t *oldlocal = NULL;
@@ -4939,8 +4938,8 @@ gf_cli_attach_tier (call_frame_t *frame, xlator_t *this,
}
words[2] = volname;
- ret = cli_cmd_volume_defrag_parse ((const char **)words,
- wordcount, &newdict);
+ ret = cli_cmd_volume_old_tier_parse ((const char **)words,
+ 4, &newdict);
if (ret) {
gf_log ("cli", GF_LOG_ERROR, "Failed to parse tier start "
"command");
@@ -4959,8 +4958,7 @@ notify_cli:
if (ret) {
cli_out ("Failed to run tier start. Please execute tier start "
"command explicitly");
- cli_out ("Usage : gluster volume rebalance <volname> tier "
- "start");
+ cli_out ("Usage : gluster volume tier <volname> start");
}
out: