]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: fix command argument error for radosgw-admin. 18175/head
authorYao Zongyou <yaozongyou@vip.qq.com>
Mon, 9 Oct 2017 09:19:45 +0000 (17:19 +0800)
committerYao Zongyou <yaozongyou@vip.qq.com>
Mon, 9 Oct 2017 09:19:45 +0000 (17:19 +0800)
Fixes: http://tracker.ceph.com/issues/21723
Signed-off-by: Yao Zongyou <yaozongyou@vip.qq.com>
src/rgw/rgw_admin.cc

index 56e628b65f2fc642e7a2bbad2944dd40430ef015..0c8165591afce8842e950d82152340cdd69f6602 100644 (file)
@@ -927,7 +927,7 @@ static int get_cmd(const char *cmd, const char *prev_cmd, const char *prev_prev_
       return OPT_RESHARD_LIST;
     if (strcmp(cmd, "status") == 0)
       return OPT_RESHARD_STATUS;
-    if (strcmp(cmd, "execute") == 0)
+    if (strcmp(cmd, "process") == 0)
       return OPT_RESHARD_PROCESS;
     if (strcmp(cmd, "cancel") == 0)
       return OPT_RESHARD_CANCEL;