]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw/logging: deleteting the object holding the temp object name on cleanup
authorYuval Lifshitz <ylifshit@ibm.com>
Mon, 3 Nov 2025 11:20:07 +0000 (11:20 +0000)
committerN Balachandran <nithya.balachandran@ibm.com>
Wed, 15 Apr 2026 03:45:32 +0000 (09:15 +0530)
commita7c6b0866456956f6c8d99c496853adcd3773380
treea7172fa8872ecf39619950f24e89b5986a89bd9b
parentab503b6eae9afa4bffe38990c985151f810d1539
rgw/logging: deleteting the object holding the temp object name on cleanup

* in case of prefix per source this would prevent leaking this object
* in case of share prefix, it would prevent data loss when other source
buckets will try to commit an already comitted temporary object
* when updatign the "last committed" attribute, the object must exist.
  this is so that commit without rollover (in case of cleanup) won't
  recreate the deleted object
* some refactoring of try-catch code to have less nesting

Fixes: https://tracker.ceph.com/issues/73675
Signed-off-by: Yuval Lifshitz <ylifshit@ibm.com>
(cherry picked from commit 494fb20f509a6d10e459a00a370eca90dd08ced1)
src/rgw/driver/rados/rgw_sal_rados.cc
src/rgw/rgw_bucket_logging.cc