]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mon/PGMap: include unknown PGs in 'pg ls [all]'
authorSage Weil <sage@redhat.com>
Tue, 11 Sep 2018 14:29:58 +0000 (09:29 -0500)
committerSage Weil <sage@redhat.com>
Tue, 11 Sep 2018 18:28:49 +0000 (13:28 -0500)
Signed-off-by: Sage Weil <sage@redhat.com>
src/mon/PGMap.cc

index 6dd2e697f371bb7aeaa003fbfcf672ec464ae7f9..dbe79bddc29586bb9709d8c4d7a219447534260b 100644 (file)
@@ -2056,7 +2056,7 @@ void PGMap::get_filtered_pg_stats(uint64_t state, int64_t poolid, int64_t osdid,
       continue;
     if ((osdid >= 0) && !(i->second.is_acting_osd(osdid,primary)))
       continue;
-    if (!(i->second.state & state))
+    if (state != (uint64_t)-1 && !(i->second.state & state))
       continue;
     pgs.insert(i->first);
   }