]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mon: ignore osd boot with bad addr
authorSage Weil <sage@newdream.net>
Mon, 23 Aug 2010 19:53:24 +0000 (12:53 -0700)
committerSage Weil <sage@newdream.net>
Mon, 23 Aug 2010 19:53:24 +0000 (12:53 -0700)
This sort of masks a bug in the msgr layer.

src/mon/OSDMonitor.cc

index bd8a6f9b7a25b25717b22c16ebfe5ef5f86b3b64..782de562935d54f21bc846aba7b0983c440ee7af 100644 (file)
@@ -465,6 +465,11 @@ bool OSDMonitor::preprocess_boot(MOSDBoot *m)
     goto ignore;
   }
 
+  if (m->get_orig_source_inst().addr.is_blank_addr()) {
+    dout(0) << "preprocess_boot got blank addr for " << m->get_orig_source_inst() << dendl;
+    goto ignore;
+  }
+
   assert(m->get_orig_source_inst().name.is_osd());
   
   // already booted?