]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
osd/PG: get_must_scrub()
authorSage Weil <sage@redhat.com>
Mon, 18 Sep 2017 19:01:00 +0000 (14:01 -0500)
committerSage Weil <sage@redhat.com>
Fri, 6 Oct 2017 18:08:18 +0000 (13:08 -0500)
Signed-off-by: Sage Weil <sage@redhat.com>
src/osd/OSD.cc
src/osd/PG.h

index 9d59e495399be7512211e4eeec11f42f1be52425..7d941eeff3f417252179d5b0e701bb129a22253d 100644 (file)
@@ -6891,7 +6891,7 @@ void OSD::sched_scrub()
        continue;
       if (pg->is_active()) {
        dout(10) << "sched_scrub scrubbing " << scrub.pgid << " at " << scrub.sched_time
-                << (pg->scrubber.must_scrub ? ", explicitly requested" :
+                << (pg->get_must_scrub() ? ", explicitly requested" :
                     (load_is_low ? ", load_is_low" : " deadline < now"))
                 << dendl;
        if (pg->sched_scrub()) {
index fb69a6280a4caa1613d21b68875ae2a149afacfb..65fb5afd73f6a87793fbaad19130740829cc456a 100644 (file)
@@ -463,6 +463,10 @@ public:
 
   virtual void shutdown() = 0;
 
+  bool get_must_scrub() const {
+    return scrubber.must_scrub;
+  }
+
   virtual void do_request(
     OpRequestRef& op,
     ThreadPool::TPHandle &handle