From: Sage Weil Date: Sun, 9 Feb 2020 15:27:53 +0000 (-0600) Subject: mon/PGMap: fix digest summary of PGs by state X-Git-Tag: v15.1.1~488^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F33137%2Fhead;p=ceph.git mon/PGMap: fix digest summary of PGs by state This fixes the PG state summary seen in 'ceph -s' to reflect PG state bits beyond 32 bits. Fixes: https://tracker.ceph.com/issues/44052 Signed-off-by: Sage Weil --- diff --git a/src/mon/PGMap.cc b/src/mon/PGMap.cc index b512d5caa3d5..9fafca5c6328 100644 --- a/src/mon/PGMap.cc +++ b/src/mon/PGMap.cc @@ -214,7 +214,7 @@ void PGMapDigest::print_summary(ceph::Formatter *f, ostream *out) const f->open_array_section("pgs_by_state"); // list is descending numeric order (by count) - std::multimap state_by_count; // count -> state + std::multimap state_by_count; // count -> state for (auto p = num_pg_by_state.begin(); p != num_pg_by_state.end(); ++p) {