]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
osd/scrub: allow auto-repair on operator-initiated scrubs
authorRonen Friedman <rfriedma@redhat.com>
Wed, 22 Nov 2023 09:56:44 +0000 (11:56 +0200)
committerRonen Friedman <rfriedma@redhat.com>
Wed, 22 Nov 2023 09:56:44 +0000 (11:56 +0200)
commit3904b6754e7defb7e819b4854920896dd0496152
tree5ff07d6c7c9196c199add6884fd06e445fddc0d8
parentb0b050d31c27f7f8198480dabce857da7b097a51
osd/scrub: allow auto-repair on operator-initiated scrubs

Previously, operator-initiated scrubs would not auto-repair, regardless
of the value of the 'osd_scrub_auto_repair' config option.  This was
less confusing to the operator than it could have been, as most
operator commands would in fact cause a regular periodic scrub
to be initiated. However, that quirk is now fixed: operator commands
now trigger 'op-initiated' scrubs. Thus the need for this patch.

Signed-off-by: Ronen Friedman <rfriedma@redhat.com>
src/osd/PG.cc
src/osd/scrubber_common.h