]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
osd/scrub: reset m_active_target when the scrub ends
authorRonen Friedman <rfriedma@redhat.com>
Sun, 29 Dec 2024 11:44:47 +0000 (05:44 -0600)
committerRonen Friedman <rfriedma@redhat.com>
Tue, 31 Dec 2024 06:09:12 +0000 (00:09 -0600)
... as it is now queried to determine whever we are scrubbing,
but not yet 'm_active', as the scrubber is in ReservingReplicas.

Signed-off-by: Ronen Friedman <rfriedma@redhat.com>
src/osd/scrubber/pg_scrubber.cc

index f23e810ab5b9f5b83c3191e51f541e847d0e9221..ba83f6ac6009b492734a5cab736fd8ce17aa2daa 100644 (file)
@@ -2077,6 +2077,7 @@ void PgScrubber::scrub_finish()
   }
 
   cleanup_on_finish();
+  m_active_target.reset();
   if (do_auto_scrub) {
     request_rescrubbing();
   }