From: Sage Weil Date: Sun, 6 Oct 2013 22:17:19 +0000 (-0700) Subject: mon: allow MMonGetMap without authentication X-Git-Tag: v0.71~18^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F695%2Fhead;p=ceph.git mon: allow MMonGetMap without authentication This is used by the MonClient::get_monmap_privately() helper. Signed-off-by: Sage Weil --- diff --git a/src/mon/Monitor.cc b/src/mon/Monitor.cc index aea811027207..d8c90bc3d765 100644 --- a/src/mon/Monitor.cc +++ b/src/mon/Monitor.cc @@ -2583,7 +2583,8 @@ bool Monitor::_ms_dispatch(Message *m) // and considering that we are creating a new session it is safe to // assume that the sender hasn't authenticated yet, so we have no way // of assessing whether we should handle it or not. - if (!src_is_mon && m->get_type() != CEPH_MSG_AUTH) { + if (!src_is_mon && (m->get_type() != CEPH_MSG_AUTH && + m->get_type() != CEPH_MSG_MON_GET_MAP)) { dout(1) << __func__ << " dropping stray message " << *m << " from " << m->get_source_inst() << dendl; return false;