mirror of
https://github.com/ceph/ceph
synced 2024-12-17 08:57:28 +00:00
osd: OSDMap: dump osd_xinfo_t::features as an int
Instead of dumping the list in a string-list format, which in retrospect wasn't very useful. Signed-off-by: Joao Eduardo Luis <joao.luis@inktank.com>
This commit is contained in:
parent
b4fbe4f813
commit
c030569847
@ -90,10 +90,7 @@ void osd_xinfo_t::dump(Formatter *f) const
|
||||
f->dump_stream("down_stamp") << down_stamp;
|
||||
f->dump_float("laggy_probability", laggy_probability);
|
||||
f->dump_int("laggy_interval", laggy_interval);
|
||||
f->open_array_section("features");
|
||||
if (features & CEPH_FEATURE_OSD_ERASURE_CODES)
|
||||
f->dump_string("flag", "erasure-codes");
|
||||
f->close_section();
|
||||
f->dump_int("features", features);
|
||||
}
|
||||
|
||||
void osd_xinfo_t::encode(bufferlist& bl) const
|
||||
|
Loading…
Reference in New Issue
Block a user