]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
osd/scrub: do not limit operator-initiated repairs wip-rf-72420repair
authorRonen Friedman <rfriedma@redhat.com>
Wed, 6 Aug 2025 05:38:07 +0000 (00:38 -0500)
committerRonen Friedman <rfriedma@redhat.com>
Wed, 6 Aug 2025 08:49:20 +0000 (03:49 -0500)
commit5afc446fdafe3f2e168f9846f324d1d6a71f0f77
treea10fe169ba2077ef9c499cc8922bdafad1357e4c
parent022179f62ecb4046a92a2bc789f85c9578ee465f
osd/scrub: do not limit operator-initiated repairs

'auto-repair' scrubs are limited to a maximum of
'scrub_auto_repair_num_errors' damaged objects.
However, operator-initiated repairs should not be limited
by that number. Alas, a bug in a previous commit
(97de817ad1c253ee1c7c9c9302981ad2435301b9) modified the
code in such a way that it applied the
'scrub_auto_repair_num_errors' limit to all repairs,
including operator-initiated ones. This commit fixes that.

Fixes: https://tracker.ceph.com/issues/72420
Signed-off-by: Ronen Friedman <rfriedma@redhat.com>
src/osd/scrubber/pg_scrubber.cc
src/osd/scrubber/scrub_job.cc
src/osd/scrubber/scrub_job.h