]> git-server-git.apps.pok.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)
committerN Balachandran <nithya.balachandran@ibm.com>
Wed, 15 Apr 2026 03:45:32 +0000 (09:15 +0530)
commitab503b6eae9afa4bffe38990c985151f810d1539
tree3d227b2c2b15a010ad4a397330c4622217afd29e
parentfc1096b31b1bce0e5bc7bd72570cee0e34b57227
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>
(cherry picked from commit cf44913720c13bdf317ff44498543c06eabe7ec7)
src/rgw/radosgw-admin/radosgw-admin.cc
src/rgw/rgw_bucket_logging.cc
src/rgw/rgw_rest_bucket_logging.cc