Skip to content

Commit

Permalink
mon/pgmap: add objects prefix for unfound type
Browse files Browse the repository at this point in the history
the objects prefix display indicates the scope of the "unfound",
like objects "misplaced" err.

Signed-off-by: huanwen ren <[email protected]>
  • Loading branch information
renhwztetecs committed Aug 16, 2017
1 parent 07bac69 commit fe81b7e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/mon/PGMap.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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());
}
}
Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit fe81b7e

Please sign in to comment.