summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSage Weil <sage@inktank.com>2013-10-01 11:00:32 -0700
committerSage Weil <sage@inktank.com>2013-10-01 11:00:32 -0700
commit23087df13b092a6ac3b0cdf743f1bda73fef79bc (patch)
treee85ce2571a24e34bb00ce3a97038a076e8c31258
parentb43bc1a0b0692818d789f9f489b9aba5dd40522f (diff)
downloadceph-23087df13b092a6ac3b0cdf743f1bda73fef79bc.tar.gz
hack: dump osd and crush map on every command
-rw-r--r--src/mon/OSDMonitor.cc14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/mon/OSDMonitor.cc b/src/mon/OSDMonitor.cc
index 9144736d801..2bcee8261c5 100644
--- a/src/mon/OSDMonitor.cc
+++ b/src/mon/OSDMonitor.cc
@@ -2655,6 +2655,20 @@ bool OSDMonitor::prepare_command(MMonCommand *m)
name = oss.str();
}
+ {
+ dout(30) << "osdmap:\n";
+ Formatter *f = new_formatter("json");
+ f->open_object_section("crushmap");
+ osdmap.crush->dump(f);
+ f->close_section();
+ f->open_object_section("osdmap");
+ osdmap.dump(f);
+ f->close_section();
+ f->flush(*_dout);
+ delete f;
+ *_dout << dendl;
+ }
+
// Even if there's a pending state with changes that could affect
// a command, considering that said state isn't yet committed, we
// just don't care about those changes if the command currently being