]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
osd/scrub: allow auto-repair on operator-initiated scrubs wip-rf-64567-tentacle
authorRonen Friedman <rfriedma@redhat.com>
Thu, 17 Jul 2025 16:59:00 +0000 (11:59 -0500)
committerRonen Friedman <rfriedma@redhat.com>
Fri, 18 Jul 2025 09:03:00 +0000 (04:03 -0500)
commitbcf504fcfe4355b6768b324f9dffc3abfbc021c0
treecd4ce0b8d644b35082c16ede37dc6e242398a2c8
parent4cb52d61e85950e603b2804a20fbfa933f9c992c
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.

The original bug was fixed in https://github.com/ceph/ceph/pull/54615,
but was unfortunately re-introduced later on.
Fixes: https://tracker.ceph.com/issues/72178
Signed-off-by: Ronen Friedman <rfriedma@redhat.com>
(cherry picked from commit 97de817ad1c253ee1c7c9c9302981ad2435301b9)
src/osd/scrubber/scrub_job.cc