]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
osd/scrub: relocate determine_scrub_time()
authorRonen Friedman <rfriedma@redhat.com>
Thu, 12 May 2022 15:35:12 +0000 (15:35 +0000)
committerRonen Friedman <rfriedma@redhat.com>
Mon, 16 May 2022 09:32:45 +0000 (09:32 +0000)
commit603a29a81301849743c151fa7d9588a08c4f3bf5
tree4c5774b874da973028a50cdb8172cc1b2287e561
parent7145287fa3cdb456ed2f349ce9dbd031bf5be6ec
osd/scrub: relocate determine_scrub_time()

This aux func calculates the next scrub time based on
configuration data, scrub history and the requested scrub
flags. As part of creating unit-tests for ScrubQueue,
determine_scrub_time() is moved to that component.

A related change codifies the OSD services used by
the scheduler.

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