]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
osd/scrub: add ScrubQueue::ready_to_scrub()
authorRonen Friedman <rfriedma@redhat.com>
Mon, 18 Sep 2023 16:31:37 +0000 (11:31 -0500)
committerRonen Friedman <rfriedma@redhat.com>
Wed, 20 Sep 2023 06:39:10 +0000 (01:39 -0500)
commitd54c579e18644968e3eedade37ae59c807439169
tree573a201ad7dd094bf26127e8591e46668f929160
parent4959d4691bc756f6350cc71829bc75ec46913111
osd/scrub: add ScrubQueue::ready_to_scrub()

At this phase of the refactoring:
this is the main interface from the scrub scheduler in OsdScrub
to the ScrubQueue. The ScrubQueue provides the ordered list of
all targets (for now - PGs) that are ready for scrubbing.

Scrub initiation code is modified to use the new interface.

Signed-off-by: Ronen Friedman <rfriedma@redhat.com>
src/osd/scrubber/osd_scrub.cc
src/osd/scrubber/osd_scrub.h
src/osd/scrubber/osd_scrub_sched.cc
src/osd/scrubber/osd_scrub_sched.h
src/osd/scrubber/scrub_job.h
src/test/osd/test_scrub_sched.cc