From bb5e015d50cb50361dd6ce258c720fe798b3835a Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Sun, 6 Sep 2015 13:56:38 -0400 Subject: [PATCH] osd: dump full map bl at 20 when crc doesn't match This will help us debug cases where the encoding doesn't match due to a bug. Signed-off-by: Sage Weil (cherry picked from commit bfe359af0b80f44ca04847f74d5a2d81097ce4e6) --- src/osd/OSD.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/osd/OSD.cc b/src/osd/OSD.cc index 86de1bb380f2e..ba1186d10e234 100644 --- a/src/osd/OSD.cc +++ b/src/osd/OSD.cc @@ -6303,6 +6303,9 @@ void OSD::handle_osd_map(MOSDMap *m) << " but failed to encode full with correct crc; requesting" << dendl; clog->warn() << "failed to encode map e" << e << " with expected crc\n"; + dout(20) << "my encoded map was:\n"; + fbl.hexdump(*_dout); + *_dout << dendl; delete o; MMonGetOSDMap *req = new MMonGetOSDMap; req->request_full(e, last); -- 2.39.5