]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
rgw: RadosBucket::get_bucket_info() updates RGWBucketEnt 45483/head
authorCasey Bodley <cbodley@redhat.com>
Tue, 6 Jul 2021 18:20:25 +0000 (14:20 -0400)
committerCory Snyder <csnyder@iland.com>
Thu, 17 Mar 2022 13:13:50 +0000 (09:13 -0400)
commitb5116a85e5592d1f5144ed19cebe973178485f65
tree54ca913fd87f99ca7232f2a5e95f4fc26f549047
parent179a7bca8a84771b0dde09e26f7a2146a985df90
rgw: RadosBucket::get_bucket_info() updates RGWBucketEnt

if we construct a RadosBucket without knowing its instance id,
get_bucket_info() will look it up for us and store it in
info.bucket.bucket_id

but RadosBucket::update_container_stats() gets this instance id from
'RGWBucketEnt ent', which wasn't updated by get_bucket_info(). this
causes update_container_stats() to try to read a bucket instance with
empty instance id, which fails with -ENOENT, and the RGWListBucket op
returns uninitialized X-Container-* stats

Fixes: https://tracker.ceph.com/issues/47781
Fixes: https://tracker.ceph.com/issues/47861
Signed-off-by: Casey Bodley <cbodley@redhat.com>
(cherry picked from commit e391e56c7dda24b4a9d6981a5be31fe8b9defd9d)
src/rgw/rgw_sal_rados.cc