From 64a046a078d75782fb97a80a45c792dc3fbdddfb Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Tue, 11 Sep 2018 09:29:58 -0500 Subject: [PATCH] mon/PGMap: include unknown PGs in 'pg ls [all]' Signed-off-by: Sage Weil --- src/mon/PGMap.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } -- 2.47.3