]> 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)
committerCory Snyder <csnyder@1111systems.com>
Thu, 21 Sep 2023 19:27:57 +0000 (19:27 +0000)
commit570adec5bb8142f5baf1f05f0040e8afdb11ec05
tree1ec7db0c976179b1a12a8dfa4a973438a3b2aef1
parent152aadb71b61c53a4832a1c8cf82fce3d64b68d1
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>
src/rgw/driver/rados/rgw_rados.cc