]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
osd/PG: add set_last_scrub_stamp
authorSage Weil <sage@redhat.com>
Wed, 13 Sep 2017 21:16:06 +0000 (17:16 -0400)
committerSage Weil <sage@redhat.com>
Fri, 6 Oct 2017 18:08:17 +0000 (13:08 -0500)
Signed-off-by: Sage Weil <sage@redhat.com>
src/osd/OSD.cc
src/osd/PG.h

index 13e844762669e57dc560f0cc37bb2db0e1d469b1..6a6191d9ac408015b7a8330447e132b918812388 100644 (file)
@@ -5348,7 +5348,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 {
index a02dc8762b737f2996bb8352193f8f289dd8b073..a9d70d7b053a4ba5eb2f17620a92f783126d6067 100644 (file)
@@ -2275,6 +2275,9 @@ public:
 
   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;
   }