From: Sage Weil Date: Tue, 11 Sep 2018 14:29:58 +0000 (-0500) Subject: mon/PGMap: include unknown PGs in 'pg ls [all]' X-Git-Tag: v14.0.1~312^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=64a046a078d75782fb97a80a45c792dc3fbdddfb;p=ceph.git mon/PGMap: include unknown PGs in 'pg ls [all]' Signed-off-by: Sage Weil --- diff --git a/src/mon/PGMap.cc b/src/mon/PGMap.cc index 6dd2e697f371..dbe79bddc295 100644 --- a/src/mon/PGMap.cc +++ b/src/mon/PGMap.cc @@ -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); }