Signed-off-by: Joao Eduardo Luis <joao@suse.de>
f->open_object_section("crushmap");
osdmap.crush->dump(f);
f->close_section();
+
+ if (has_osdmap_manifest) {
+ f->open_object_section("osdmap_manifest");
+ osdmap_manifest.dump(f);
+ f->close_section();
+ }
}
namespace {
decode(p);
}
+ void dump(Formatter *f) {
+ f->dump_unsigned("first_pinned", get_first_pinned());
+ f->dump_unsigned("last_pinned", get_last_pinned());
+ f->open_array_section("pinned_maps");
+ for (auto& i : pinned) {
+ f->dump_unsigned("epoch", i);
+ }
+ f->close_section();
+ }
};
WRITE_CLASS_ENCODER(osdmap_manifest_t);