]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
rgw: cleanup rgw-admin duplicated judge during OLH GET/READLOG
authorJiaying Ren <jiaying.ren@umcloud.com>
Sun, 18 Jun 2017 04:04:16 +0000 (12:04 +0800)
committerJiaying Ren <jiaying.ren@umcloud.com>
Sun, 18 Jun 2017 04:04:16 +0000 (12:04 +0800)
Signed-off-by: Jiaying Ren <jiaying.ren@umcloud.com>
src/rgw/rgw_admin.cc

index 5a65eb5a5150824b639989b649ed69acf44275dc..06cc80d953120198eca4cbb5ea0a8e3387534ac6 100644 (file)
@@ -5204,12 +5204,6 @@ next:
       cerr << "ERROR: object not specified" << std::endl;
       return EINVAL;
     }
-    RGWBucketInfo bucket_info;
-    int ret = init_bucket(tenant, bucket_name, bucket_id, bucket_info, bucket);
-    if (ret < 0) {
-      cerr << "ERROR: could not init bucket: " << cpp_strerror(-ret) << std::endl;
-      return -ret;
-    }
   }
 
   if (opt_cmd == OPT_OLH_GET) {