From 1cfad2ea77d3137935525b30e002be5c839f6f7f Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Fri, 17 Dec 2010 10:59:45 -0800 Subject: [PATCH] osd: clear INCONSISTENT if scrub detects no errors Signed-off-by: Sage Weil --- src/osd/PG.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/osd/PG.cc b/src/osd/PG.cc index 76e2a05898f..6502b73174b 100644 --- a/src/osd/PG.cc +++ b/src/osd/PG.cc @@ -3310,7 +3310,7 @@ void PG::scrub() ss << ", " << fixed << " fixed"; osd->get_logclient()->log(errors ? LOG_ERROR:LOG_INFO, ss); - if (!(errors - fixed) && repair) + if (errors == 0 || (repair && (errors - fixed) == 0)) state_clear(PG_STATE_INCONSISTENT); state_clear(PG_STATE_REPAIR);