]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mon/PGMap: nicely format pg acting in health messages 40243/head
authorSage Weil <sage@newdream.net>
Fri, 19 Mar 2021 15:11:45 +0000 (10:11 -0500)
committerSage Weil <sage@newdream.net>
Fri, 19 Mar 2021 15:12:04 +0000 (10:12 -0500)
For 'pg ls' we show CRUSH_ITEM_NONE as "NONE" and not "2147483647". Do
the same for the health messages.

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

index 8c52fd6fe5e17bfb6a1c8ff22060033a6233a674..2c4ea9ead094962ed92e871c5d5a59903b658510 100644 (file)
@@ -2552,11 +2552,11 @@ void PGMap::get_health_checks(
             ss << " for " << utimespan_str(dur);
           }
           ss << ", current state " << pg_state_string(pg_info.state)
-             << ", last acting " << pg_info.acting;
+             << ", last acting " << pg_vector_string(pg_info.acting);
         } else {
           ss << "pg " << pg_id << " is "
              << pg_state_string(pg_info.state);
-          ss << ", acting " << pg_info.acting;
+          ss << ", acting " << pg_vector_string(pg_info.acting);
           if (pg_info.stats.sum.num_objects_unfound) {
             ss << ", " << pg_info.stats.sum.num_objects_unfound
                << " unfound";