From a680ea7b806f7d70fb49efb4fbfc8cd9aab32212 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Sun, 15 Dec 2013 21:45:30 -0800 Subject: [PATCH] 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 --- src/osd/ReplicatedPG.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/osd/ReplicatedPG.cc b/src/osd/ReplicatedPG.cc index 33e544eb7c2..a65f43511a0 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(); -- 2.47.3