From: huanwen ren Date: Wed, 16 Aug 2017 08:21:20 +0000 (+0800) Subject: mon/pgmap: add objects prefix for unfound type X-Git-Tag: v13.0.0~71^2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=fe81b7e3a5034ce855303f93f3e413f3f2dc74a8;p=ceph-ci.git mon/pgmap: add objects prefix for unfound type the objects prefix display indicates the scope of the "unfound", like objects "misplaced" err. Signed-off-by: huanwen ren --- diff --git a/src/mon/PGMap.cc b/src/mon/PGMap.cc index 9ec7d8f8a83..01db55a4a75 100644 --- a/src/mon/PGMap.cc +++ b/src/mon/PGMap.cc @@ -396,7 +396,7 @@ void PGMapDigest::recovery_summary(Formatter *f, list *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) {