mirror of
https://github.com/ceph/ceph
synced 2024-12-19 01:46:00 +00:00
Fix output of 'ceph osd tree --format=json'
Signed-off-by: Tyler Brekke <tyler.brekke@inktank.com>
This commit is contained in:
parent
7a9107d1b8
commit
9bcba944c6
@ -1598,14 +1598,12 @@ void OSDMap::print_tree(ostream *out, Formatter *f) const
|
||||
if (out)
|
||||
*out << "\n";
|
||||
if (f) {
|
||||
f->dump_float("crush_weight", weight);
|
||||
f->dump_unsigned("depth", depth);
|
||||
f->close_section();
|
||||
}
|
||||
touched.insert(cur);
|
||||
}
|
||||
if (f) {
|
||||
f->dump_float("crush_weight", weight);
|
||||
f->dump_unsigned("depth", depth);
|
||||
}
|
||||
if (cur >= 0) {
|
||||
continue;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user