]> git.apps.os.sepia.ceph.com Git - ceph-ci.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)
committerkchheda3 <kchheda3@bloomberg.net>
Thu, 4 Apr 2024 19:15:38 +0000 (15:15 -0400)
commitfa5d370663804db9752c99e79659aae031a7bf85
treefa7d56dc08371b4b59882f0876f5ed4df5816f7d
parent9d29fa7015a57bddf8c09bee5f2dc6d95f7229f4
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>
src/rgw/driver/rados/rgw_cr_rados.cc
src/rgw/driver/rados/rgw_notify.cc