Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mon: some cleanup #17067

Merged
merged 2 commits into from
Aug 19, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/mon/MonCommands.h
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ COMMAND("auth rm " \
/*
* Monitor commands (Monitor.cc)
*/
COMMAND_WITH_FLAG("compact", "cause compaction of monitor's leveldb storage", \
COMMAND_WITH_FLAG("compact", "cause compaction of monitor's leveldb/rocksdb storage", \
"mon", "rw", "cli,rest", \
FLAG(NOFORWARD)|FLAG(DEPRECATED))
COMMAND_WITH_FLAG("scrub", "scrub the monitor stores", \
Expand Down Expand Up @@ -264,7 +264,7 @@ COMMAND("node ls " \
* Monitor-specific commands under module 'mon'
*/
COMMAND_WITH_FLAG("mon compact", \
"cause compaction of monitor's leveldb storage", \
"cause compaction of monitor's leveldb/rocksdb storage", \
"mon", "rw", "cli,rest", \
FLAG(NOFORWARD))
COMMAND_WITH_FLAG("mon scrub",
Expand Down
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