]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mon/PGMonitor: remove {rd,wr}_kb from pool stat dumps 2215/head
authorSage Weil <sage@redhat.com>
Wed, 6 Aug 2014 16:31:59 +0000 (09:31 -0700)
committerSage Weil <sage@redhat.com>
Wed, 6 Aug 2014 17:33:04 +0000 (10:33 -0700)
These fields are replaced with corresponding *_bytes fields.

Signed-off-by: Sage Weil <sage@redhat.com>
PendingReleaseNotes
src/mon/PGMonitor.cc

index 3369803d02e23f5fc504b6cb1449f31d0b495195..2bbd47c3c3313eb9c899346dd73a3aa85be265ce 100644 (file)
@@ -5,3 +5,9 @@ v0.84
 * The *_kb perf counters on the monitor have been removed.  These are
   replaced with a new set of *_bytes counters (e.g., cluster_osd_kb is
   replaced by cluster_osd_bytes).
+
+* The rd_kb and wr_kb fields in the JSON dumps for pool stats (accessed via
+  the 'ceph df detail -f json-pretty' and related commands) have been replaced
+  with corresponding *_bytes fields.  Similarly, the 'total_space', 'total_used',
+  and 'total_avail' fields are replaced with 'total_bytes', 'total_used_bytes',
+  and 'total_avail_bytes' fields.
index 351db930fc40043df9dd33b2dfdadf1baaac3079..807a93d3800a093f8b563d48f7ed520f39aa0d64 100644 (file)
@@ -1233,10 +1233,8 @@ void PGMonitor::dump_object_stat_sum(TextTable &tbl, Formatter *f,
     if (verbose) {
       f->dump_int("dirty", sum.num_objects_dirty);
       f->dump_int("rd", sum.num_rd);
-      f->dump_int("rd_kb", sum.num_rd_kb);
       f->dump_int("rd_bytes", sum.num_rd_kb * 1024ull);
       f->dump_int("wr", sum.num_wr);
-      f->dump_int("wr_kb", sum.num_wr_kb);
       f->dump_int("wr_bytes", sum.num_wr_kb * 1024ull);
     }
   } else {
@@ -1395,11 +1393,8 @@ void PGMonitor::dump_fs_stats(stringstream &ss, Formatter *f, bool verbose)
 {
   if (f) {
     f->open_object_section("stats");
-    f->dump_int("total_space", pg_map.osd_sum.kb);
     f->dump_int("total_bytes", pg_map.osd_sum.kb * 1024ull);
-    f->dump_int("total_used", pg_map.osd_sum.kb_used);
     f->dump_int("total_used_bytes", pg_map.osd_sum.kb_used * 1024ull);
-    f->dump_int("total_avail", pg_map.osd_sum.kb_avail);
     f->dump_int("total_avail_bytes", pg_map.osd_sum.kb_avail * 1024ull);
     if (verbose) {
       f->dump_int("total_objects", pg_map.pg_sum.stats.sum.num_objects);