mon: PGMonitor: dump 'epoch' as json int instead of string

Signed-off-by: Joao Eduardo Luis <joao.luis@inktank.com>
This commit is contained in:
Joao Eduardo Luis 2014-06-19 16:05:07 +01:00
parent 317cf95f5a
commit 1a120e981a

View File

@ -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;