Skip to content

Commit

Permalink
osd/PG: add set_last_scrub_stamp
Browse files Browse the repository at this point in the history
Signed-off-by: Sage Weil <sage@redhat.com>
(cherry picked from commit 3ca232e)

Conflicts:
	src/osd/PG.h (trivial)
  • Loading branch information
liewegas authored and dzafman committed Feb 12, 2019
1 parent d90dee1 commit d2d5165
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/osd/OSD.cc
Expand Up @@ -5642,7 +5642,7 @@ void TestOpsSocketHook::test_ops(OSDService *service, ObjectStore *store,
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 {
Expand Down
3 changes: 3 additions & 0 deletions src/osd/PG.h
Expand Up @@ -2496,6 +2496,9 @@ class PG : public DoutPrefixProvider {
public:
const spg_t& get_pgid() const { return pg_id; }

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;
}
Expand Down

0 comments on commit d2d5165

Please sign in to comment.