]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
rgw/logging: make sure source bucket is in the target's list
authorYuval Lifshitz <ylifshit@ibm.com>
Thu, 30 Oct 2025 09:45:48 +0000 (09:45 +0000)
committerYuval Lifshitz <ylifshit@ibm.com>
Thu, 30 Oct 2025 09:45:48 +0000 (09:45 +0000)
commitcf44913720c13bdf317ff44498543c06eabe7ec7
treea76c7310eb6284379396499e2e17c5b27f2267bf
parentf92765ee0fb8135abb07f9cbbcf837305b4487f7
rgw/logging: make sure source bucket is in the target's list

if a target log bucket is deleted, and then recreated with the same name,
the attribute holding the sources will not exist.
this is fixing it, but updating the list anytime we try to flush
or add a record.
if the source is already in the list, there will be no update to the attribute.

Fixes: https://tracker.ceph.com/issues/73675
Signed-off-by: Yuval Lifshitz <ylifshit@ibm.com>
src/rgw/radosgw-admin/radosgw-admin.cc
src/rgw/rgw_bucket_logging.cc
src/rgw/rgw_rest_bucket_logging.cc