]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw_admin: remove broken check
authorYehuda Sadeh <yehuda@redhat.com>
Tue, 20 Dec 2016 21:32:17 +0000 (13:32 -0800)
committerYehuda Sadeh <yehuda@redhat.com>
Thu, 9 Mar 2017 17:18:55 +0000 (09:18 -0800)
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
src/rgw/rgw_admin.cc

index 30a0d32ccc96e74efafa57cb8de32d44a7dbf120..b671fd3cdd926f88788f02953016f73d00dd6625 100644 (file)
@@ -1716,12 +1716,6 @@ static int init_bucket_for_sync(const string& tenant, const string& bucket_name,
   RGWBucketInfo bucket_info;
 
   int ret = init_bucket(tenant, bucket_name, bucket_id, bucket_info, bucket);
-  if (ret == -ENOENT) {
-    if (bucket_id.empty()) {
-      cerr << "ERROR: bucket id specified" << std::endl;
-      return EINVAL;
-    }
-  }
   if (ret < 0) {
     cerr << "ERROR: could not init bucket: " << cpp_strerror(-ret) << std::endl;
     return -ret;