]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
mon/pgmap: add objects prefix for unfound type
authorhuanwen ren <ren.huanwen@zte.com.cn>
Wed, 16 Aug 2017 08:21:20 +0000 (16:21 +0800)
committerhuanwen ren <ren.huanwen@zte.com.cn>
Wed, 16 Aug 2017 08:21:20 +0000 (16:21 +0800)
the objects prefix display indicates the scope of the "unfound",
like objects "misplaced" err.

Signed-off-by: huanwen ren <ren.huanwen@zte.com.cn>
src/mon/PGMap.cc

index 9ec7d8f8a834ada0d49401d695b4a2bfd1117e40..01db55a4a7583aeaab3f01df18bbce6f191a96f3 100644 (file)
@@ -396,7 +396,7 @@ void PGMapDigest::recovery_summary(Formatter *f, list<string> *psl,
     } else {
       ostringstream ss;
       ss << delta_sum.stats.sum.num_objects_unfound
-         << "/" << delta_sum.stats.sum.num_objects << " unfound (" << b << "%)";
+         << "/" << delta_sum.stats.sum.num_objects << " objects unfound (" << b << "%)";
       psl->push_back(ss.str());
     }
   }
@@ -3097,7 +3097,7 @@ void PGMap::get_health_checks(
     snprintf(b, sizeof(b), "%.3lf", pc);
     ostringstream ss;
     ss << pg_sum.stats.sum.num_objects_unfound
-       << "/" << pg_sum.stats.sum.num_objects << " unfound (" << b << "%)";
+       << "/" << pg_sum.stats.sum.num_objects << " objects unfound (" << b << "%)";
     auto& d = checks->add("OBJECT_UNFOUND", HEALTH_WARN, ss.str());
 
     for (auto& p : pg_stat) {