This was already a no-op: we don't call PG::scrub_sched() unless it has
been osd_scrub_max_interval seconds since we last scrubbed. Unless we
explicitly requested in, in which case we don't want this check anyway.
Signed-off-by: Sage Weil <sage@inktank.com>
return false;
}
- // just scrubbed?
- if (info.history.last_scrub_stamp + g_conf->osd_scrub_min_interval > ceph_clock_now(g_ceph_context)) {
- dout(20) << "sched_scrub: just scrubbed, skipping" << dendl;
- return false;
- }
-
bool ret = true;
if (!scrubber.reserved) {
assert(scrubber.reserved_peers.empty());