]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
radosgw-admin: rename 'bucket sync status' to 'bucket sync markers'
authorCasey Bodley <cbodley@redhat.com>
Mon, 30 Apr 2018 14:52:37 +0000 (10:52 -0400)
committerCasey Bodley <cbodley@redhat.com>
Mon, 30 Apr 2018 14:52:42 +0000 (10:52 -0400)
renames the command to 'bucket sync markers' because it only returns the
local sync status markers for use in multisite tests

Signed-off-by: Casey Bodley <cbodley@redhat.com>
src/rgw/rgw_admin.cc
src/test/rgw/rgw_multi/tests.py

index 96ab3f8e56d4dfdaa0d5fb4e11d21cb164c3ae09..8a87f2f0b0677959f838146bcdb5aa02de67185e 100644 (file)
@@ -373,7 +373,7 @@ enum {
   OPT_BUCKET_UNLINK,
   OPT_BUCKET_STATS,
   OPT_BUCKET_CHECK,
-  OPT_BUCKET_SYNC_STATUS,
+  OPT_BUCKET_SYNC_MARKERS,
   OPT_BUCKET_SYNC_INIT,
   OPT_BUCKET_SYNC_RUN,
   OPT_BUCKET_SYNC_DISABLE,
@@ -644,8 +644,8 @@ static int get_cmd(const char *cmd, const char *prev_cmd, const char *prev_prev_
     }
   } else if (prev_prev_cmd && strcmp(prev_prev_cmd, "bucket") == 0) {
     if (strcmp(prev_cmd, "sync") == 0) {
-      if (strcmp(cmd, "status") == 0)
-        return OPT_BUCKET_SYNC_STATUS;
+      if (strcmp(cmd, "markers") == 0)
+        return OPT_BUCKET_SYNC_MARKERS;
       if (strcmp(cmd, "init") == 0)
         return OPT_BUCKET_SYNC_INIT;
       if (strcmp(cmd, "run") == 0)
@@ -3117,7 +3117,7 @@ int main(int argc, const char **argv)
                         OPT_BUCKETS_LIST,
                         OPT_BUCKET_LIMIT_CHECK,
                         OPT_BUCKET_STATS,
-                        OPT_BUCKET_SYNC_STATUS,
+                        OPT_BUCKET_SYNC_MARKERS,
                         OPT_LOG_LIST,
                         OPT_LOG_SHOW,
                         OPT_USAGE_SHOW,
@@ -6875,7 +6875,7 @@ next:
       return -ret;
 }
 
-  if (opt_cmd == OPT_BUCKET_SYNC_STATUS) {
+  if (opt_cmd == OPT_BUCKET_SYNC_MARKERS) {
     if (source_zone.empty()) {
       cerr << "ERROR: source zone not specified" << std::endl;
       return EINVAL;
index cfbbd818e5ed9fe2ec255194cc9839e164378db6..03be85355962ca2921817c2db9be871da0c75be8 100644 (file)
@@ -252,7 +252,7 @@ def bucket_sync_status(target_zone, source_zone, bucket_name):
     if target_zone == source_zone:
         return None
 
-    cmd = ['bucket', 'sync', 'status'] + target_zone.zone_args()
+    cmd = ['bucket', 'sync', 'markers'] + target_zone.zone_args()
     cmd += ['--source-zone', source_zone.name]
     cmd += ['--bucket', bucket_name]
     while True:
@@ -263,7 +263,7 @@ def bucket_sync_status(target_zone, source_zone, bucket_name):
         assert(retcode == 2) # ENOENT
 
     bucket_sync_status_json = bucket_sync_status_json.decode('utf-8')
-    log.debug('current bucket sync status=%s', bucket_sync_status_json)
+    log.debug('current bucket sync markers=%s', bucket_sync_status_json)
     sync_status = json.loads(bucket_sync_status_json)
 
     markers={}