from both adjust_deep_schedule() and adjust_shallow_schedule().
In both cases, we only rely on the 'last' stamps to
determine the next scheduled time.
Signed-off-by: Ronen Friedman <rfriedma@redhat.com>
// the next periodic scrubs:
m_scrub_job->adjust_shallow_schedule(
- m_pg->info.history.last_scrub_stamp, applicable_conf, scrub_clock_now);
+ m_pg->info.history.last_scrub_stamp, applicable_conf);
m_scrub_job->adjust_deep_schedule(
- m_pg->info.history.last_deep_scrub_stamp, applicable_conf,
- scrub_clock_now);
+ m_pg->info.history.last_deep_scrub_stamp, applicable_conf);
dout(10) << fmt::format("{}: adjusted:{}", __func__, *m_scrub_job) << dendl;
}
void ScrubJob::adjust_shallow_schedule(
utime_t last_scrub,
- const Scrub::sched_conf_t& app_conf,
- utime_t scrub_clock_now)
+ const Scrub::sched_conf_t& app_conf)
{
dout(10) << fmt::format(
"at entry: shallow target:{}, conf:{}, last-stamp:{:s}",
void ScrubJob::adjust_deep_schedule(
utime_t last_deep,
- const Scrub::sched_conf_t& app_conf,
- utime_t scrub_clock_now)
+ const Scrub::sched_conf_t& app_conf)
{
dout(10) << fmt::format(
"at entry: deep target:{}, conf:{}, last-stamp:{:s}",
*/
void adjust_shallow_schedule(
utime_t last_scrub,
- const Scrub::sched_conf_t& app_conf,
- utime_t scrub_clock_now);
+ const Scrub::sched_conf_t& app_conf);
void adjust_deep_schedule(
utime_t last_deep,
- const Scrub::sched_conf_t& app_conf,
- utime_t scrub_clock_now);
+ const Scrub::sched_conf_t& app_conf);
/**
* For the level specified, set the 'not-before' time to 'now+delay',
std::string log_msg_prefix;
+
/*
* Restrictions and limitations that apply to each urgency level:
* -------------------------------------------------------------