]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
osd/scrub: use the actual active set when requesting replicas to scrub
authorRonen Friedman <rfriedma@redhat.com>
Wed, 28 Sep 2022 13:52:52 +0000 (13:52 +0000)
committerRonen Friedman <rfriedma@redhat.com>
Mon, 3 Oct 2022 14:59:25 +0000 (17:59 +0300)
Note that get_acting_set() may differ from
get_acting_recovery_backfill() - if we are backfilling or recovering.

Fixes: https://tracker.ceph.com/issues/57698
Signed-off-by: Ronen Friedman <rfriedma@redhat.com>
src/osd/scrubber/pg_scrubber.cc

index 7597f4a7d27830af4267921f88be66a4d8c2cc9c..77f1e16c9fde334d8cdb520c46520a7eacb3bf11 100644 (file)
@@ -891,7 +891,7 @@ void PgScrubber::get_replicas_maps(bool replica_can_preempt)
   m_primary_scrubmap_pos.reset();
 
   // ask replicas to scan and send maps
-  for (const auto& i : m_pg->get_acting_recovery_backfill()) {
+  for (const auto& i : m_pg->get_actingset()) {
 
     if (i == m_pg_whoami)
       continue;
@@ -1005,7 +1005,7 @@ void PgScrubber::on_init()
     m_pg_whoami,
     m_is_repair,
     m_is_deep ? scrub_level_t::deep : scrub_level_t::shallow,
-    m_pg->get_acting_recovery_backfill());
+    m_pg->get_actingset());
 
   //  create a new store
   {