]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw-admin: radosgw-admin reshard execute -> reshard process
authorYehuda Sadeh <yehuda@redhat.com>
Thu, 25 May 2017 00:00:02 +0000 (17:00 -0700)
committerYehuda Sadeh <yehuda@redhat.com>
Mon, 5 Jun 2017 20:17:59 +0000 (13:17 -0700)
to be in line with other radosgw-admin commands.

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
src/rgw/rgw_admin.cc

index c3400bcc116c2130b58d2b59fef7b7065f706cac..aa3ce9e1b23c0c0238b29261e7a39a3368c0ac84 100644 (file)
@@ -192,7 +192,7 @@ void _usage()
   cout << "  role-policy delete         delete policy attached to a role\n";
   cout << "  reshard add                schedule a resharding of a bucket\n";
   cout << "  reshard list               list all bucket resharding or scheduled to be reshared\n";
-  cout << "  reshard execute            execute resharding of  a bucket \n";
+  cout << "  reshard process            process of scheduled reshard jobs\n";
   cout << "  reshard cancel             cancel resharding a bucket\n";
   cout << "options:\n";
   cout << "   --tenant=<tenant>         tenant name\n";
@@ -483,7 +483,7 @@ enum {
   OPT_RESHARD_ADD,
   OPT_RESHARD_LIST,
   OPT_RESHARD_STATUS,
-  OPT_RESHARD_EXECUTE,
+  OPT_RESHARD_PROCESS,
   OPT_RESHARD_CANCEL,
 };
 
@@ -926,7 +926,7 @@ static int get_cmd(const char *cmd, const char *prev_cmd, const char *prev_prev_
     if (strcmp(cmd, "status") == 0)
       return OPT_RESHARD_STATUS;
     if (strcmp(cmd, "execute") == 0)
-      return OPT_RESHARD_EXECUTE;
+      return OPT_RESHARD_PROCESS;
     if (strcmp(cmd, "cancel") == 0)
       return OPT_RESHARD_CANCEL;
   }
@@ -5703,7 +5703,7 @@ next:
     formatter->flush(cout);
   }
 
-  if (opt_cmd == OPT_RESHARD_EXECUTE) {
+  if (opt_cmd == OPT_RESHARD_PROCESS) {
     RGWReshard reshard(store, true, &cout);
 
     int ret = reshard.process_all_logshards();