]> git.apps.os.sepia.ceph.com Git - ceph-ci.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)
committerCasey Bodley <cbodley@redhat.com>
Wed, 18 Oct 2023 15:05:39 +0000 (11:05 -0400)
commitd0851aa3ab23996962b95adc8fd23d04c9be28b2
tree637422ed0554659de4f6d84e814c1245ae092357
parente947aaed53836dddb790ee6032a850acda4666cd
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/driver/rados/rgw_rados.cc