From: Casey Bodley Date: Sat, 18 Mar 2023 16:01:49 +0000 (-0400) Subject: rgw: remove unused RGWObjectSimplePutCR X-Git-Tag: v19.0.0~122^2~21 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=019e60d68050f53fbd8b1679e6e835f4c164473d;p=ceph-ci.git rgw: remove unused RGWObjectSimplePutCR Signed-off-by: Casey Bodley --- diff --git a/src/rgw/driver/rados/rgw_cr_tools.cc b/src/rgw/driver/rados/rgw_cr_tools.cc index 31119a25b2e..65cb6750504 100644 --- a/src/rgw/driver/rados/rgw_cr_tools.cc +++ b/src/rgw/driver/rados/rgw_cr_tools.cc @@ -103,31 +103,6 @@ int RGWGetBucketInfoCR::Request::_send_request(const DoutPrefixProvider *dpp) return store->get_bucket(dpp, nullptr, params.tenant, params.bucket_name, &result->bucket, null_yield); } -template<> -int RGWObjectSimplePutCR::Request::_send_request(const DoutPrefixProvider *dpp) -{ - RGWDataAccess::ObjectRef obj; - - CephContext *cct = store->ctx(); - - int ret = params.bucket->get_object(params.key, &obj); - if (ret < 0) { - lderr(cct) << "ERROR: failed to get object: " << cpp_strerror(-ret) << dendl; - return -ret; - } - - if (params.user_data) { - obj->set_user_data(*params.user_data); - } - - ret = obj->put(params.data, params.attrs, dpp, null_yield); - if (ret < 0) { - ldpp_dout(dpp, -1) << "ERROR: put object returned error: " << cpp_strerror(-ret) << dendl; - } - - return 0; -} - template<> int RGWBucketLifecycleConfigCR::Request::_send_request(const DoutPrefixProvider *dpp) { diff --git a/src/rgw/driver/rados/rgw_cr_tools.h b/src/rgw/driver/rados/rgw_cr_tools.h index e68e386fb83..3599e4505e4 100644 --- a/src/rgw/driver/rados/rgw_cr_tools.h +++ b/src/rgw/driver/rados/rgw_cr_tools.h @@ -45,16 +45,6 @@ struct rgw_get_bucket_info_result { using RGWGetBucketInfoCR = RGWSimpleAsyncCR; -struct rgw_object_simple_put_params { - RGWDataAccess::BucketRef bucket; - rgw_obj_key key; - bufferlist data; - std::map attrs; - std::optional user_data; -}; - -using RGWObjectSimplePutCR = RGWSimpleWriteOnlyAsyncCR; - struct rgw_bucket_lifecycle_config_params { rgw::sal::Bucket* bucket;