From: Ronen Friedman Date: Sun, 29 Dec 2024 11:44:47 +0000 (-0600) Subject: osd/scrub: reset m_active_target when the scrub ends X-Git-Tag: v20.0.0~456^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=4726bebefeec7bd6949990b0da7b0fb51529af39;p=ceph.git osd/scrub: reset m_active_target when the scrub ends ... 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 --- diff --git a/src/osd/scrubber/pg_scrubber.cc b/src/osd/scrubber/pg_scrubber.cc index f23e810ab5b9..ba83f6ac6009 100644 --- a/src/osd/scrubber/pg_scrubber.cc +++ b/src/osd/scrubber/pg_scrubber.cc @@ -2077,6 +2077,7 @@ void PgScrubber::scrub_finish() } cleanup_on_finish(); + m_active_target.reset(); if (do_auto_scrub) { request_rescrubbing(); }