From: Sage Weil Date: Mon, 16 Dec 2013 05:45:30 +0000 (-0800) Subject: osd/ReplicatedPG: update pg stat fields when they are queried X-Git-Tag: v0.77~68^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F950%2Fhead;p=ceph.git osd/ReplicatedPG: update pg stat fields when they are queried 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 --- diff --git a/src/osd/ReplicatedPG.cc b/src/osd/ReplicatedPG.cc index 33e544eb7c25..a65f43511a03 100644 --- a/src/osd/ReplicatedPG.cc +++ b/src/osd/ReplicatedPG.cc @@ -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();