From b22a9ac5fbf8dc11cb156c2ee4004bbbb05cf5bf Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Sun, 9 Feb 2020 09:27:53 -0600 Subject: [PATCH] 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 (cherry picked from commit 1453154c252e617efd01fce59c71a5dcc3a73c23) Conflicts: src/mon/PGMap.cc - nautilus has "multimap" where master has "std::multimap" --- 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 3902217a38a..97630f7a0d3 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) { -- 2.47.3