]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
osd/PG: Remove the unuseful judgement.
authorJianpeng Ma <jianpeng.ma@intel.com>
Thu, 2 Apr 2015 08:54:19 +0000 (16:54 +0800)
committerJianpeng Ma <jianpeng.ma@intel.com>
Thu, 2 Apr 2015 08:54:19 +0000 (16:54 +0800)
Signed-off-by: Jianpeng Ma <jianpeng.ma@intel.com>
src/osd/PG.cc

index bac9c48c9d61313941cc5038a5fdd174c4b2f8d5..db00cf67faac7a2513ecd9b14ae422c94b8b03bc 100644 (file)
@@ -4224,8 +4224,9 @@ void PG::scrub_process_inconsistent()
   bool repair = state_test(PG_STATE_REPAIR);
   bool deep_scrub = state_test(PG_STATE_DEEP_SCRUB);
   const char *mode = (repair ? "repair": (deep_scrub ? "deep-scrub" : "scrub"));
-
-  if (!scrubber.authoritative.empty() || !scrubber.inconsistent.empty()) {
+  
+  // authoriative only store objects which missing or inconsistent.
+  if (!scrubber.authoritative.empty()) {
     stringstream ss;
     ss << info.pgid << " " << mode << " "
        << scrubber.missing.size() << " missing, "