]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mon/PGMap: fix digest summary of PGs by state 33137/head
authorSage Weil <sage@redhat.com>
Sun, 9 Feb 2020 15:27:53 +0000 (09:27 -0600)
committerSage Weil <sage@redhat.com>
Sun, 9 Feb 2020 15:27:53 +0000 (09:27 -0600)
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 <sage@redhat.com>
src/mon/PGMap.cc

index b512d5caa3d5b3e0063a028f6710d0834d38a59c..9fafca5c632893bb72640d8223e6f7965dea790b 100644 (file)
@@ -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<int,int> state_by_count;  // count -> state
+  std::multimap<int,uint64_t> state_by_count;  // count -> state
   for (auto p = num_pg_by_state.begin();
        p != num_pg_by_state.end();
        ++p) {