From 48dd2ceb653e5f8e2ccce3446cf3014ccf554319 Mon Sep 17 00:00:00 2001 From: Yehuda Sadeh Date: Tue, 20 Dec 2016 13:32:17 -0800 Subject: [PATCH] rgw_admin: remove broken check Signed-off-by: Yehuda Sadeh --- src/rgw/rgw_admin.cc | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/rgw/rgw_admin.cc b/src/rgw/rgw_admin.cc index 30a0d32ccc96e..b671fd3cdd926 100644 --- a/src/rgw/rgw_admin.cc +++ b/src/rgw/rgw_admin.cc @@ -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; -- 2.39.5