]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
osd/scrub: removing the unused next_deepscrub_interval() 66998/head
authorRonen Friedman <rfriedma@redhat.com>
Tue, 20 Jan 2026 14:05:15 +0000 (14:05 +0000)
committerRonen Friedman <rfriedma@redhat.com>
Tue, 20 Jan 2026 14:05:15 +0000 (14:05 +0000)
Signed-off-by: Ronen Friedman <rfriedma@redhat.com>
src/osd/PG.cc
src/osd/PG.h

index 95a7c26cf8f167f610756ad381493d7abaa45bcb..7745ea5bb888b25b705141b9226edb00b4c6fa58 100644 (file)
@@ -1291,15 +1291,6 @@ Scrub::schedule_result_t PG::start_scrubbing(
       candidate.level, osd_restrictions, pg_cond);
 }
 
-double PG::next_deepscrub_interval() const
-{
-  double deep_scrub_interval =
-    pool.info.opts.value_or(pool_opts_t::DEEP_SCRUB_INTERVAL, 0.0);
-  if (deep_scrub_interval <= 0.0)
-    deep_scrub_interval = cct->_conf->osd_deep_scrub_interval;
-  return info.history.last_deep_scrub_stamp + deep_scrub_interval;
-}
-
 void PG::on_scrub_schedule_input_change()
 {
   if (is_active() && is_primary() && !is_scrub_queued_or_active()) {
index 43795697fd169874d11849a982590535e1922c99..4432ccaf8fcde127038dea0b9fea8ade21482dd9 100644 (file)
@@ -710,9 +710,6 @@ public:
   unsigned int scrub_requeue_priority(Scrub::scrub_prio_t with_priority) const;
 
 private:
-  // auxiliaries used by sched_scrub():
-  double next_deepscrub_interval() const;
-
   using ScrubAPI = void (ScrubPgIF::*)(epoch_t epoch_queued);
   void forward_scrub_event(ScrubAPI fn, epoch_t epoch_queued, std::string_view desc);
   // and for events that carry a meaningful 'activation token'