]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw: prevent another leftover bucket index olh entry scenario
authorCory Snyder <csnyder@1111systems.com>
Thu, 21 Sep 2023 19:27:51 +0000 (19:27 +0000)
committerCory Snyder <csnyder@1111systems.com>
Wed, 4 Oct 2023 08:52:58 +0000 (08:52 +0000)
commit541a2a94ad263a03f88029390f595031be77bca4
tree96068be736255a5e3d62073d7ca7698f1708c376
parentd828c761a114138914eb6e0ab6e237b6c22c8059
rgw: prevent another leftover bucket index olh entry scenario

If a call to bucket_index_link_olh or bucket_index_unlink_instance
fails, its associated pending xattr may have prevented the olh object
from being removed by another thread. We should do a best effort
cleanup attempt for this case by calling update_olh before returning
an error to the caller.

Signed-off-by: Cory Snyder <csnyder@1111systems.com>
(cherry picked from commit 570adec5bb8142f5baf1f05f0040e8afdb11ec05)

Conflicts:
src/rgw/driver/rados/rgw_rados.cc

Cherry-pick notes:
- Conflicts due to rgw_rados file being moved into driver dir in later versions
src/rgw/rgw_rados.cc