]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
mon/PGMap: make plurals be more compatible with existing codes
authorxie xingguo <xie.xingguo@zte.com.cn>
Mon, 24 Jul 2017 07:58:23 +0000 (15:58 +0800)
committerxie xingguo <xie.xingguo@zte.com.cn>
Tue, 25 Jul 2017 02:24:44 +0000 (10:24 +0800)
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
src/mon/PGMap.cc

index 1b5ce757c1be00fe2d36efd387e04fb38ac294a6..dae60cb346815a7960413150232264f05aea83e2 100644 (file)
@@ -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;