mirror of
https://github.com/ceph/ceph
synced 2025-03-05 07:48:55 +00:00
osd/PG: include map epoch in query results
Currently you can only infer it from the info.history.* fields. Signed-off-by: Sage Weil <sage@inktank.com>
This commit is contained in:
parent
e359a86219
commit
8fef6fa385
@ -270,6 +270,7 @@ int ReplicatedPG::do_command(vector<string>& cmd, ostream& ss,
|
||||
JSONFormatter jsf(true);
|
||||
jsf.open_object_section("pg");
|
||||
jsf.dump_string("state", pg_state_string(get_state()));
|
||||
jsf.dump_unsigned("epoch", get_osdmap()->get_epoch());
|
||||
jsf.open_array_section("up");
|
||||
for (vector<int>::iterator p = up.begin(); p != up.end(); ++p)
|
||||
jsf.dump_unsigned("osd", *p);
|
||||
|
Loading…
Reference in New Issue
Block a user