From: Sage Weil Date: Sun, 6 Sep 2015 17:56:38 +0000 (-0400) Subject: osd: dump full map bl at 20 when crc doesn't match X-Git-Tag: v0.94.8~56^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=bb5e015d50cb50361dd6ce258c720fe798b3835a;p=ceph.git 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) --- diff --git a/src/osd/OSD.cc b/src/osd/OSD.cc index 86de1bb380f2..ba1186d10e23 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);