From adea084a99bdae1ef2e1058a0b1ee26ea6d2c75a Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Wed, 4 Jan 2012 13:38:03 -0800 Subject: [PATCH] osd: mark degraded only when < desired replica count Having extra replicas is not 'degraded' per se. Although it's weird that we ever do that! 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 75f8ca73cfc26..01847314457a8 100644 --- a/src/osd/PG.cc +++ b/src/osd/PG.cc @@ -1318,7 +1318,7 @@ void PG::activate(ObjectStore::Transaction& t, list& tfin, } // degraded? - if (get_osdmap()->get_pg_size(info.pgid) != active) + if (get_osdmap()->get_pg_size(info.pgid) > active) state_set(PG_STATE_DEGRADED); // all clean? -- 2.39.5