From 137a2d550abbc085585eb2af06510a3bfbb6c804 Mon Sep 17 00:00:00 2001 From: Jianpeng Ma Date: Thu, 2 Apr 2015 16:54:19 +0800 Subject: [PATCH] osd/PG: Remove the unuseful judgement. Signed-off-by: Jianpeng Ma --- src/osd/PG.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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, " -- 2.47.3