From 8dc7b5dfe60af454f60b53a3ddf5e91733d31480 Mon Sep 17 00:00:00 2001 From: xie xingguo Date: Mon, 24 Jul 2017 15:58:23 +0800 Subject: [PATCH] mon/PGMap: make plurals be more compatible with existing codes Signed-off-by: xie xingguo --- src/mon/PGMap.cc | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/src/mon/PGMap.cc b/src/mon/PGMap.cc index 1b5ce757c1b..dae60cb3468 100644 --- a/src/mon/PGMap.cc +++ b/src/mon/PGMap.cc @@ -3109,11 +3109,12 @@ void PGMap::get_health_checks( for (auto& p : warn_osd_by_max) { ostringstream ss; if (p.second.size() > 1) { - ss << "osds " << p.second; + ss << "osds " << p.second + << " have blocked requests > " << p.first << " sec"; } else { - ss << "osd." << *p.second.begin(); + ss << "osd." << *p.second.begin() + << " has blocked requests > " << p.first << " sec"; } - ss << " have blocked requests > " << p.first << " sec"; d.detail.push_back(ss.str()); if (--left == 0) { break; @@ -3130,11 +3131,12 @@ void PGMap::get_health_checks( for (auto& p : error_osd_by_max) { ostringstream ss; if (p.second.size() > 1) { - ss << "osds " << p.second; + ss << "osds " << p.second + << " have stuck requests > " << p.first << " sec"; } else { - ss << "osd." << *p.second.begin(); + ss << "osd." << *p.second.begin() + << " has stuck requests > " << p.first << " sec"; } - ss << " have stuck requests > " << p.first << " sec"; d.detail.push_back(ss.str()); if (--left == 0) { break; -- 2.39.5