]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mon/PGMap: use NONE for 'pg ls[-*]' output too 32048/head
authorSage Weil <sage@redhat.com>
Thu, 5 Dec 2019 20:37:02 +0000 (14:37 -0600)
committerSage Weil <sage@redhat.com>
Thu, 5 Dec 2019 20:37:02 +0000 (14:37 -0600)
We already show CRUSH_ITEM_NONE as NONE in the 'pg dump' output as of
57bac8ea88e5cdcb3854852d439f7e6cbf9df900; do the same for 'pg ls' (which
is the friendlier of the two and what users should be using anyway!).

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

index e1ce677436cfeb406ee7ddfc23b70b7dcc834bec..722e61f5d74b91075777dba8171f98958db444bb 100644 (file)
@@ -2279,8 +2279,8 @@ void PGMap::dump_filtered_pg_stats(ostream& ss, set<pg_t>& pgs) const
     reported << st.reported_epoch << ":" << st.reported_seq;
 
     ostringstream upstr, actingstr;
-    upstr << st.up << 'p' << st.up_primary;
-    actingstr << st.acting << 'p' << st.acting_primary;
+    upstr << pg_vector_string(st.up) << 'p' << st.up_primary;
+    actingstr << pg_vector_string(st.acting) << 'p' << st.acting_primary;
     tab << *i
         << st.stats.sum.num_objects
         << st.stats.sum.num_objects_degraded