]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
osd: dump full map bl at 20 when crc doesn't match
authorSage Weil <sage@redhat.com>
Sun, 6 Sep 2015 17:56:38 +0000 (13:56 -0400)
committerSage Weil <sage@redhat.com>
Sun, 6 Sep 2015 17:56:51 +0000 (13:56 -0400)
This will help us debug cases where the encoding doesn't match due
to a bug.

Signed-off-by: Sage Weil <sage@redhat.com>
src/osd/OSD.cc

index a98db3401d04699c5907f7612d3bce995438f56b..a577fd802c82a1f6749a46c02d6c5b45e165c6a1 100644 (file)
@@ -6248,6 +6248,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);