]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
rgw: remove bucket API returns NoSuchKey than NoSuchBucket
authorSatoru Takeuchi <satoru.takeuchi@gmail.com>
Mon, 27 Dec 2021 08:03:41 +0000 (08:03 +0000)
committerCasey Bodley <cbodley@redhat.com>
Tue, 18 Jan 2022 18:34:31 +0000 (13:34 -0500)
commit553f4f73cbe2965713c8676d4fccad6c799151ea
treea203f8a36e638539c005d4a250d6c5494b8c994f
parenta906f78d435e887e87ba36ae4890f6ef045cddf5
rgw: remove bucket API returns NoSuchKey than NoSuchBucket

Remove bucket API returns NoSuchKey but NoSuchBucket is appropriate in this case.

Code path:
RGWRadosStore::get_bucket
-> RGWRadosBucket::get_bucket_info
-> RGWBucketCtl::read_bucket_info
-> RGWBucketCtl::read_bucket_entrypoint_info
-> RGWSI_Bucket_SObj::read_bucket_entrypoint_info
-> RGWSI_MetaBackend_SObj::get_entry
-> rgw_get_system_obj
-> RGWSI_SysObj::Obj::ROp::stat
-> RGWSI_SysObj_Core::stat # return -ENOENT here.

[1]: https://docs.ceph.com/en/pacific/radosgw/adminops/#remove-bucket

Fixes: https://tracker.ceph.com/issues/53731
Signed-off-by: Satoru Takeuchi <satoru.takeuchi@gmail.com>
(cherry picked from commit 375c22aba3ea1d4af6b05a3c83b0aee6ad2a0b6a)
src/rgw/rgw_rest_bucket.cc
src/rgw/services/svc_bucket_sobj.cc