Skip to content

Commit

Permalink
osd: make object_info_t::dump using hobject_t and object_locator_t du…
Browse files Browse the repository at this point in the history
…mpers

Makes the output more readable.

Signed-off-by: Sage Weil <[email protected]>
  • Loading branch information
liewegas committed Feb 21, 2012
1 parent f7feded commit e67c0ff
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/osd/osd_types.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1955,8 +1955,12 @@ void object_info_t::decode(bufferlist::iterator& bl)

void object_info_t::dump(Formatter *f) const
{
f->dump_stream("oid") << soid;
f->dump_stream("locator") << oloc;
f->open_object_section("oid");
soid.dump(f);
f->close_section();
f->open_object_section("locator");
oloc.dump(f);
f->close_section();
f->dump_string("category", category);
f->dump_stream("version") << version;
f->dump_stream("prior_version") << prior_version;
Expand Down

0 comments on commit e67c0ff

Please sign in to comment.