]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
osd/scrub: separate between PG state flags and internal scrubber operation
authorRonen Friedman <rfriedma@redhat.com>
Mon, 10 May 2021 13:15:16 +0000 (16:15 +0300)
committerRonen Friedman <rfriedma@redhat.com>
Fri, 14 May 2021 15:22:20 +0000 (18:22 +0300)
commit80c756b00927a306249de2d5887c4f4f64e4c679
treed728a5332e44588280cda63e4f886012abbee8f0
parent2a30142d8a8c4cc0c43557a6621d2c45cb0f5bb8
osd/scrub: separate between PG state flags and internal scrubber operation

Modify the scrubber to rely on internal flags for 'should we repair' and
'is this a deep scrub', instead of using PG_STATE_REPAIR & PG_STATE_DEEP_SCRUB.

This enables us to implement the 'fix-as-you-go deepscrub' functionality
of 'osd_scrub_auto_repair', without displaying REPAIR status to the user.

Fixes: https://tracker.ceph.com/issues/50446
Signed-off-by: Ronen Friedman <rfriedma@redhat.com>
Co-Authored by: Neha Ojha <nojha@redhat.com>
src/osd/PrimaryLogScrub.cc
src/osd/PrimaryLogScrub.h
src/osd/pg_scrubber.cc
src/osd/pg_scrubber.h