]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw/notification: Load bucket attrs before calling publish_reserve.
authorkchheda3 <kchheda3@bloomberg.net>
Thu, 4 Apr 2024 18:30:40 +0000 (14:30 -0400)
committerCasey Bodley <cbodley@redhat.com>
Wed, 10 Apr 2024 13:18:07 +0000 (09:18 -0400)
commit87bbd654b9497606796b95a6e59f74be26fc0509
tree0be7da8459a919267ba20a1efd5c459aad25fcc7
parente0209e5f235bb31e714ffb228f09ff30c2376666
rgw/notification: Load bucket attrs before calling publish_reserve.

As part of PR# 55657, publish_reserve would reload bucket to ensure bucket_attrs are loaded. However for lc events, where the bucket attrs were already loaded, the reloading was causing crash but there was no obvious root cause, so to avoid the crashes, remove reloading of bucket in publish_reserve and put the onus on callers to load the bucket before calling publish_reserve.

Signed-off-by: kchheda3 <kchheda3@bloomberg.net>
(cherry picked from commit fa5d370663804db9752c99e79659aae031a7bf85)
src/rgw/driver/rados/rgw_cr_rados.cc
src/rgw/driver/rados/rgw_notify.cc