Signed-off-by: Sage Weil <sage@redhat.com>
utime_t stamp = ceph_clock_now();
stamp -= scrub_max_interval;
stamp -= 100.0; // push back last scrub more for good measure
- pg->info.history.last_scrub_stamp = stamp;
+ pg->set_last_scrub_stamp(stamp);
pg->reg_next_scrub();
ss << "ok";
} else {
const pg_history_t& get_history() const { return info.history; }
+ void set_last_scrub_stamp(utime_t t) {
+ info.history.last_scrub_stamp = t;
+ }
void reset_min_peer_features() {
peer_features = CEPH_FEATURES_SUPPORTED_DEFAULT;
}