]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
rgw/rados: fix list_objects_ordered() detection of "forward progress"
authorCasey Bodley <cbodley@redhat.com>
Tue, 11 Mar 2025 16:51:02 +0000 (12:51 -0400)
committerCasey Bodley <cbodley@redhat.com>
Mon, 31 Mar 2025 21:03:02 +0000 (17:03 -0400)
commita025b04c534c916204623503e0173a8e2d4cc4bb
tree95b6c1655c82061de45736fb47fd26067ceeef1f
parent4fc56063c232ba1bc00c45c1ba8b33e65553c1a2
rgw/rados: fix list_objects_ordered() detection of "forward progress"

for multiple versions of the same object name, ListObjectVersions is
supposed to return versions "in the order that they were stored,
returning the most recently stored object first"

this sort order is preserved by the bucket index in cls_rgw, so
list_objects_ordered() should not expect the version ids to be sorted
lexicographically. replace the not-less-than comparison with equality

Signed-off-by: Casey Bodley <cbodley@redhat.com>
(cherry picked from commit 24f55b883e5009b032e1c0e91932a01d5d231945)
src/rgw/driver/rados/rgw_rados.cc