diff --git a/src/mon/PGMonitor.cc b/src/mon/PGMonitor.cc index 078202d0cbd..23b30044d34 100644 --- a/src/mon/PGMonitor.cc +++ b/src/mon/PGMonitor.cc @@ -1566,7 +1566,7 @@ bool PGMonitor::preprocess_command(MMonCommand *m) mon->osdmon()->osdmap.pg_to_up_acting_osds(pgid, up, acting); if (f) { f->open_object_section("pg_map"); - f->dump_stream("epoch") << mon->osdmon()->osdmap.get_epoch(); + f->dump_int("epoch", mon->osdmon()->osdmap.get_epoch()); f->dump_stream("raw_pgid") << pgid; f->dump_stream("pgid") << mpgid;