From: Sage Weil Date: Fri, 19 Mar 2021 15:11:45 +0000 (-0500) Subject: mon/PGMap: nicely format pg acting in health messages X-Git-Tag: v17.1.0~2531^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F40243%2Fhead;p=ceph.git mon/PGMap: nicely format pg acting in health messages 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 --- diff --git a/src/mon/PGMap.cc b/src/mon/PGMap.cc index 8c52fd6fe5e1..2c4ea9ead094 100644 --- a/src/mon/PGMap.cc +++ b/src/mon/PGMap.cc @@ -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";