]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
osdmap: dump fullmap from dump()
authorSage Weil <sage@newdream.net>
Tue, 21 Feb 2012 21:50:34 +0000 (13:50 -0800)
committerSage Weil <sage@newdream.net>
Tue, 21 Feb 2012 21:50:34 +0000 (13:50 -0800)
Signed-off-by: Sage Weil <sage@newdream.net>
src/osd/OSDMap.cc

index e8cc15ac6069632b63e3d4a74d50f52f65b0d77c..ac64d42818c2d630767e93cacbab6bbb5202b71f 100644 (file)
@@ -275,12 +275,19 @@ void OSDMap::Incremental::dump(Formatter *f) const
 
   if (fullmap.length()) {
     f->open_object_section("full_map");
-    // fIXME
+    OSDMap full;
+    bufferlist fbl = fullmap;  // kludge around constness.
+    bufferlist::iterator p = fbl.begin();
+    full.decode(p);
+    full.dump(f);
     f->close_section();
   }
   if (crush.length()) {
     f->open_object_section("crush");
     // fixme
+    //CrushWrapper c;
+    //c.decode(crush);
+    //c.dump(f);
     f->close_section();
   }