]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
osd/PG: introduce flags to indicate explicitly requested scrubs
authorSage Weil <sage@inktank.com>
Sat, 12 Jan 2013 17:15:16 +0000 (09:15 -0800)
committerSage Weil <sage@inktank.com>
Wed, 23 Jan 2013 14:19:46 +0000 (06:19 -0800)
Signed-off-by: Sage Weil <sage@inktank.com>
(cherry picked from commit 1441095d6babfacd781929e8a54ed2f8a4444467)

src/osd/PG.h

index cf9a26d2d27d6f034f30a904fcb4a2cc23202226..9d5983ef94ae3fca92ecee35985bd029303b2105 100644 (file)
@@ -814,6 +814,7 @@ public:
       epoch_start(0),
       block_writes(false), active(false), queue_snap_trim(false),
       waiting_on(0), errors(0), fixed(0), active_rep_scrub(0),
+      must_scrub(false), must_deep_scrub(false), must_repair(false),
       finalizing(false), is_chunky(false), state(INACTIVE),
       deep(false)
     {
@@ -837,6 +838,9 @@ public:
     MOSDRepScrub *active_rep_scrub;
     utime_t scrub_reg_stamp;  // stamp we registered for
 
+    // flags to indicate explicitly requested scrubs (by admin)
+    bool must_scrub, must_deep_scrub, must_repair;
+
     // Maps from objects with erros to missing/inconsistent peers
     map<hobject_t, set<int> > missing;
     map<hobject_t, set<int> > inconsistent;
@@ -928,6 +932,10 @@ public:
       }
       received_maps.clear();
 
+      must_scrub = false;
+      must_deep_scrub = false;
+      must_repair = false;
+
       state = PG::Scrubber::INACTIVE;
       start = hobject_t();
       end = hobject_t();