]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
osd: make sure we get the full osdmap before applying inc osdmap 8961/head
authorxie xingguo <xie.xingguo@zte.com.cn>
Fri, 6 May 2016 09:00:12 +0000 (17:00 +0800)
committerxie xingguo <xie.xingguo@zte.com.cn>
Wed, 11 May 2016 02:15:42 +0000 (10:15 +0800)
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
src/osd/OSD.cc

index 7caef4ef946e1a59250d8c58ca7ec015a5fe4924..f6cc3a1c93ecd802c3652128e2b42ec8318db901 100644 (file)
@@ -6642,7 +6642,8 @@ void OSD::handle_osd_map(MOSDMap *m)
       OSDMap *o = new OSDMap;
       if (e > 1) {
        bufferlist obl;
-       get_map_bl(e - 1, obl);
+        bool got = get_map_bl(e - 1, obl);
+        assert(got);
        o->decode(obl);
       }