]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
osd/scrub: removing dead code
authorRonen Friedman <rfriedma@redhat.com>
Thu, 28 May 2026 15:25:29 +0000 (15:25 +0000)
committerRonen Friedman <rfriedma@redhat.com>
Fri, 29 May 2026 04:35:04 +0000 (04:35 +0000)
Signed-off-by: Ronen Friedman <rfriedma@redhat.com>
src/osd/scrubber/scrub_job.h

index c4c4e97aad442e04c5bdc91dbffab2e94ce32a14..5e9671f7d2e35ba8f4df3323149acf14b085d10d 100644 (file)
@@ -238,20 +238,6 @@ class ScrubJob {
       delay_cause_t delay_cause,
       utime_t scrub_clock_now);
 
- /**
-   * recalculate the scheduling parameters for the periodic scrub targets.
-   * Used whenever the "external state" of the PG changes, e.g. when made
-   * primary - or indeed when the configuration changes.
-   *
-   * Does not modify ripe targets.
-   * (why? for example, a 'scrub pg' command following a 'deepscrub pg'
-   * would otherwise push the deep scrub to the future).
-   */
-  void on_periods_change(
-      const sched_params_t& suggested,
-      const Scrub::sched_conf_t& aconf,
-      utime_t scrub_clock_now) {}
-
   /**
    * the operator requested a scrub (shallow, deep or repair).
    * Set the selected target to the requested urgency, adjusting scheduling
@@ -288,17 +274,6 @@ class ScrubJob {
   std::ostream& gen_prefix(std::ostream& out, std::string_view fn) const;
   std::string log_msg_prefix;
 
-  // the comparison operator is used to sort the scrub jobs in the queue.
-  // Note that it would not be needed in the next iteration of this code, as
-  // the queue would *not* hold the full ScrubJob objects, but rather -
-  // SchedTarget(s).
-  std::partial_ordering operator<=>(const ScrubJob& rhs) const
-  {
-    return cmp_entries(
-      ceph_clock_now(), shallow_target.queued_element(),
-      deep_target.queued_element());
-  };
-
 
  /*
  * Restrictions and limitations that apply to each urgency level: