Signed-off-by: Ronen Friedman <rfriedma@redhat.com>
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()) {
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'