Fix output of 'ceph osd tree --format=json'

Signed-off-by: Tyler Brekke <tyler.brekke@inktank.com>
This commit is contained in:
Concubidated 2013-03-08 13:44:39 -08:00
parent 7a9107d1b8
commit 9bcba944c6

View File

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