]> 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 14:58:21 +0000 (14:58 +0000)
commitc4210ee20e0ec8b7068980fdcd51f346e5e51241
treead88aa8ea24d1fec03dd48c0a2b0a3271e66b459
parent8b1fe1edd9d4b2625d963db6f38687c1b38f868f
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)
src/rgw/rgw_rados.cc