Skip to content

Commit

Permalink
osdmap: dump embedded crush map in Incremental::dump()
Browse files Browse the repository at this point in the history
Signed-off-by: Sage Weil <[email protected]>
  • Loading branch information
liewegas committed Feb 21, 2012
1 parent cc78fda commit 55a6065
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/osd/OSDMap.cc
Original file line number Diff line number Diff line change
Expand Up @@ -284,10 +284,11 @@ void OSDMap::Incremental::dump(Formatter *f) const
}
if (crush.length()) {
f->open_object_section("crush");
// fixme
//CrushWrapper c;
//c.decode(crush);
//c.dump(f);
CrushWrapper c;
bufferlist tbl = crush; // kludge around constness.
bufferlist::iterator p = tbl.begin();
c.decode(p);
c.dump(f);
f->close_section();
}

Expand Down

0 comments on commit 55a6065

Please sign in to comment.