From c8bae3ba7f8eecd86970a9d2cda47bbc959de826 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Fri, 19 Mar 2021 10:11:45 -0500 Subject: [PATCH] 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 --- src/mon/PGMap.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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"; -- 2.47.3