]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mon/PGMap: 'incomplete' means data is unavailable
authorSage Weil <sage@redhat.com>
Thu, 27 Jul 2017 17:54:29 +0000 (13:54 -0400)
committerSage Weil <sage@redhat.com>
Tue, 1 Aug 2017 13:25:42 +0000 (09:25 -0400)
Well, data is certainly unavailable, and may also be
degraded in the sense that we can't peer.  I think
unavailable is the more severe of the two, though, so
let's put it there!

Signed-off-by: Sage Weil <sage@redhat.com>
src/mon/PGMap.cc

index 1b5ce757c1be00fe2d36efd387e04fb38ac294a6..5d9f4bb8003d12122919908c34400469081e5262 100644 (file)
@@ -2609,7 +2609,7 @@ void PGMap::get_health_checks(
   std::map<unsigned, PgStateResponse> state_to_response = {
     // Immediate reports
     { PG_STATE_INCONSISTENT,     {DAMAGED,     {}} },
-    { PG_STATE_INCOMPLETE,       {DEGRADED,    {}} },
+    { PG_STATE_INCOMPLETE,       {UNAVAILABLE, {}} },
     { PG_STATE_REPAIR,           {DAMAGED,     {}} },
     { PG_STATE_SNAPTRIM_ERROR,   {DAMAGED,     {}} },
     { PG_STATE_BACKFILL_TOOFULL, {DEGRADED,    {}} },