]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
osd/scrub: fix 'schedule-deepscrub' test asok command
authorRonen Friedman <rfriedma@redhat.com>
Wed, 6 Nov 2024 14:43:57 +0000 (08:43 -0600)
committerRonen Friedman <rfriedma@redhat.com>
Thu, 7 Nov 2024 13:34:16 +0000 (07:34 -0600)
commitab49ca023a2e9052c709e05ec65022572b8a499f
tree1b32f07c62ee2b75341d0205d7d484532390f923
parent9272d438a7c27167fb2749f48277b7cb811b397b
osd/scrub: fix 'schedule-deepscrub' test asok command

The existing implementation of the 'schedule-deepscrub' Asok
command uses the set_last_deep_scrub_stamp() method to "fake"
the last-deep-scrub stamp. Unfortunately, this method also
updates the last-scrub stamp (as required for non-test usage).

Commit 9f3e18b fixed the comparator used when sorting the
scrub targets. An unintended side effect is that
following 'schedule-deepscrub' - the shallow target
is the one to be scrubbed next, instead of the deep target.

Signed-off-by: Ronen Friedman <rfriedma@redhat.com>
src/osd/scrubber/pg_scrubber.cc