]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
osd/ReplicatedPG: update pg stat fields when they are queried 950/head
authorSage Weil <sage@inktank.com>
Mon, 16 Dec 2013 05:45:30 +0000 (21:45 -0800)
committerSage Weil <sage@inktank.com>
Mon, 16 Dec 2013 05:45:30 +0000 (21:45 -0800)
When we query a PG, fill in (most of) the same fields that get
populated when the stats are reported to the mon.

Fixes: #6988
Signed-off-by: Sage Weil <sage@inktank.com>
src/osd/ReplicatedPG.cc

index 33e544eb7c25adbf1b34e215def9e59e54fc19e8..a65f43511a03fa5f068c7651a362cf15de26c47d 100644 (file)
@@ -477,6 +477,7 @@ int ReplicatedPG::do_command(cmdmap_t cmdmap, ostream& ss,
       f->close_section();
     }
     f->open_object_section("info");
+    _update_calc_stats();
     info.dump(f.get());
     f->close_section();