]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
rgw: Fix for correctly listing all elements of queue.
authorPritha Srivastava <prsrivas@redhat.com>
Mon, 17 Feb 2020 15:33:19 +0000 (21:03 +0530)
committerPritha Srivastava <prsrivas@redhat.com>
Mon, 24 Feb 2020 07:30:03 +0000 (13:00 +0530)
commit8f01dd9ec9f170b2fe5a19a58c855c0cc782f680
treed151cf455fe2dde9953b0fbeb296d5751de14e21
parentdd8374ce109d2f24c9ccb50bade36e9f34ac6070
rgw: Fix for correctly listing all elements of queue.

The gc list operations lists 1000 elements at a time,
and if 1000 elements are returned from a queue, then
the next iteration also lists the same queue to see
if there are some more elements. This fix takes care
of cases when there are more than 1000 elements in the
queue and the number of elements is a multiple of 1000.
The truncated flag of queue list is also taken into account
to determine whether we should continue processing the
same queue or move on to the next gc object.

Signed-off-by: Pritha Srivastava <prsrivas@redhat.com>
src/rgw/rgw_admin.cc
src/rgw/rgw_gc.cc
src/rgw/rgw_gc.h
src/rgw/rgw_rados.cc
src/rgw/rgw_rados.h