From fe81b7e3a5034ce855303f93f3e413f3f2dc74a8 Mon Sep 17 00:00:00 2001 From: huanwen ren Date: Wed, 16 Aug 2017 16:21:20 +0800 Subject: [PATCH] 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 --- 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 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) { -- 2.39.5