diff options
Diffstat (limited to 'src/mon/OSDMonitor.cc')
-rw-r--r-- | src/mon/OSDMonitor.cc | 14 |
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 |