From: Jianpeng Ma Date: Thu, 2 Apr 2015 08:54:19 +0000 (+0800) Subject: osd/PG: Remove the unuseful judgement. X-Git-Tag: v9.0.1~164^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=137a2d550abbc085585eb2af06510a3bfbb6c804;p=ceph.git osd/PG: Remove the unuseful judgement. Signed-off-by: Jianpeng Ma --- diff --git a/src/osd/PG.cc b/src/osd/PG.cc index bac9c48c9d61..db00cf67faac 100644 --- a/src/osd/PG.cc +++ b/src/osd/PG.cc @@ -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, "