]> git.apps.os.sepia.ceph.com Git - ceph.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>
Wed, 19 Jul 2023 09:38:15 +0000 (09:38 +0000)
commit9e0f0059587fd059df5190d731ca7b15b388e527
tree90a37dc94c3cc3d59a3f28b4751457b009d503d8
parentef8450e5e4c366bacf11d0f48cd5c999553aaf04
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/rgw_rados.cc