]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
osd/scrub: do not limit operator-initiated repairs wip-rf-64849-tentacle
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 10:45:25 +0000 (05:45 -0500)
commitbeeb0edf4ea2473ebb10a15c28766404eea2baaa
tree89d9f3f50345610e828651e8e751e18647dada1e
parent9e41c4c5edb4b1050abd025cbb80f9e39015f05a
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>
(cherry picked from commit 5afc446fdafe3f2e168f9846f324d1d6a71f0f77)
src/osd/scrubber/pg_scrubber.cc
src/osd/scrubber/scrub_job.cc
src/osd/scrubber/scrub_job.h