]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
rgw: is_olh() predicate should use user.rgw.olh.ver xattr
authorCory Snyder <csnyder@1111systems.com>
Tue, 23 May 2023 09:43:38 +0000 (09:43 +0000)
committerCory Snyder <csnyder@1111systems.com>
Tue, 18 Jul 2023 15:31:29 +0000 (15:31 +0000)
commit0fbede2be92e72516cab31c746632a856e1ec91d
treeeaafd3ec8e94daef3842cf9e9fe39678ebb83f8c
parent39ada5563cbcd2fdae8721a727f4adf56a19f2b7
rgw: is_olh() predicate should use user.rgw.olh.ver xattr

The predicate which determines whether an object is an OLH object was previously based off of the
user.rgw.olh.info xattr, but this xattr is not set when the OLH object is first created. This
means that in cases where an error prevents that xattr from being set later, the OLH object is
incorrectly interpreted as an empty unversioned object. This change modifies the is_olh function
to use the user.rgw.olh.ver xattr. This xattr is set at the time of OLH creation and therefore
ensures consistency.

Fixes: https://tracker.ceph.com/issues/61359
Signed-off-by: Cory Snyder <csnyder@1111systems.com>
(cherry picked from commit 74ab3eb94a4177eacdac4fe48528542ba355ecfe)
src/rgw/driver/rados/rgw_rados.cc