]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw: remove bucket API returns NoSuchKey than NoSuchBucket 45489/head
authorSatoru Takeuchi <satoru.takeuchi@gmail.com>
Mon, 27 Dec 2021 08:03:41 +0000 (08:03 +0000)
committerCory Snyder <csnyder@iland.com>
Thu, 17 Mar 2022 13:22:38 +0000 (09:22 -0400)
commite0efad0de569cdab2429e1ad4daaf73402a20478
tree91a414b082047c4c3f656caafa33b0101d72d421
parent179a7bca8a84771b0dde09e26f7a2146a985df90
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