From e75643f717a00454678ff0882f38da9d24281168 Mon Sep 17 00:00:00 2001 From: Ronen Friedman Date: Sat, 28 Oct 2023 11:42:34 -0500 Subject: [PATCH] osd/scrub: do not clear PG_STATE_REPAIR unconditionally As we now call clear_pgscrub_state() at the end of each 'Session' state, we must not clear PG_STATE_REPAIR unconditionally. Previously - scrubs that reached normal completion, i.e. reached PgScrubber::scrub_finish(), would have only cleared that PG flag under specific conditions. That was changed in previous commits of this PR, and is now fixed. Signed-off-by: Ronen Friedman --- src/osd/scrubber/pg_scrubber.cc | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/osd/scrubber/pg_scrubber.cc b/src/osd/scrubber/pg_scrubber.cc index b090ec113ee..5afc2ced272 100644 --- a/src/osd/scrubber/pg_scrubber.cc +++ b/src/osd/scrubber/pg_scrubber.cc @@ -2166,8 +2166,6 @@ void PgScrubber::clear_pgscrub_state() state_clear(PG_STATE_SCRUBBING); state_clear(PG_STATE_DEEP_SCRUB); - state_clear(PG_STATE_REPAIR); - m_local_osd_resource.reset(); requeue_waiting(); -- 2.39.5