]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
osd/scrub: do not clear PG_STATE_REPAIR unconditionally 53843/head
authorRonen Friedman <rfriedma@redhat.com>
Sat, 28 Oct 2023 16:42:34 +0000 (11:42 -0500)
committerRonen Friedman <rfriedma@redhat.com>
Sat, 28 Oct 2023 16:42:34 +0000 (11:42 -0500)
commite75643f717a00454678ff0882f38da9d24281168
tree61727d5dfa51faf17e802360d271117f9be497ad
parent9999249876d4a4c5ab8f4c8a204442df2902fc36
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 <rfriedma@redhat.com>
src/osd/scrubber/pg_scrubber.cc