Skip to content

Commit

Permalink
Merge pull request ceph#11654 from hjwsm1989/fix
Browse files Browse the repository at this point in the history
mon: print the num_pools and num_objects in 'ceph -s -f json/json-p…

Reviewed-by: Kefu Chai <[email protected]>
  • Loading branch information
tchaikov committed Oct 30, 2016
2 parents 25d43f4 + bf2b50e commit 1341021
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/mon/PGMap.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1594,6 +1594,8 @@ void PGMap::print_summary(Formatter *f, ostream *out) const
if (f) {
f->dump_unsigned("version", version);
f->dump_unsigned("num_pgs", pg_stat.size());
f->dump_unsigned("num_pools", pg_pool_sum.size());
f->dump_unsigned("num_objects", pg_sum.stats.sum.num_objects);
f->dump_unsigned("data_bytes", pg_sum.stats.sum.num_bytes);
f->dump_unsigned("bytes_used", osd_sum.kb_used * 1024ull);
f->dump_unsigned("bytes_avail", osd_sum.kb_avail * 1024ull);
Expand Down

0 comments on commit 1341021

Please sign in to comment.