]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
crimson/osd/pg_recovery: push the iteration forward after finding 58958/head
authorXuehan Xu <xuxuehan@qianxin.com>
Wed, 10 Jul 2024 06:54:31 +0000 (14:54 +0800)
committerMatan Breizman <mbreizma@redhat.com>
Wed, 31 Jul 2024 08:50:55 +0000 (11:50 +0300)
unfound objects when starting primary recoveries

Fixes: https://tracker.ceph.com/issues/66885
Signed-off-by: Xuehan Xu <xuxuehan@qianxin.com>
(cherry picked from commit acb66c1665937923ebb4b45b3e58364b26a51621)

src/crimson/osd/pg_recovery.cc

index 4ed861cfd7ef74dc48fcd6bcd705bdb8708af042..df3c6216825ebd9b8562b0461945b034fd09ac44 100644 (file)
@@ -152,11 +152,13 @@ size_t PGRecovery::start_primary_recovery_ops(
     if (pg->get_peering_state().get_missing_loc().is_unfound(soid)) {
       logger().debug("{}: object {} unfound", __func__, soid);
       ++skipped;
+      ++p;
       continue;
     }
     if (pg->get_peering_state().get_missing_loc().is_unfound(head)) {
       logger().debug("{}: head object {} unfound", __func__, soid);
       ++skipped;
+      ++p;
       continue;
     }