]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
rgw/lc: advance head if the current entry doesn't exist
authorSoumya Koduri <skoduri@redhat.com>
Mon, 25 Mar 2024 18:08:57 +0000 (23:38 +0530)
committerSoumya Koduri <skoduri@redhat.com>
Fri, 26 Apr 2024 11:36:04 +0000 (17:06 +0530)
commit1035ab3a49c92e06da8492cbc9c29188fbf56643
tree68a83a44f093b96c64eb568b95a99167f5cc6a24
parentb22e2ebdeb24376882b7bda2a7329c8cccc2276a
rgw/lc: advance head if the current entry doesn't exist

This is extension to https://github.com/ceph/ceph/pull/47595.

When skipping the non-exist LC entry, instead of get_next_entry(),
use advance_head() to fetch the next entry. In case the cycle
is finished for that shard, head should be reset to avoid lc process
being stuck in indefinite loop.

Fixes: https://tracker.ceph.com/issues/65160
Signed-off-by: Soumya Koduri <skoduri@redhat.com>
(cherry picked from commit 86a8709dc8884c5f065946926648a75485002efb)
src/rgw/rgw_lc.cc