]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
osd: dump full map bl at 20 when crc doesn't match 9164/head
authorSage Weil <sage@redhat.com>
Sun, 6 Sep 2015 17:56:38 +0000 (13:56 -0400)
committerSage Weil <sage@redhat.com>
Tue, 17 May 2016 13:48:57 +0000 (09:48 -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>
(cherry picked from commit bfe359af0b80f44ca04847f74d5a2d81097ce4e6)

src/osd/OSD.cc

index 86de1bb380f2ee58de9581a853e54fc92084a4ad..ba1186d10e23467d4ff83ea1ac7681309de13867 100644 (file)
@@ -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);