From 71ee6d7c8d3973361fa66f5e9eb4863cbc11c8a8 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Sun, 6 Oct 2013 15:17:19 -0700 Subject: [PATCH] mon: allow MMonGetMap without authentication This is used by the MonClient::get_monmap_privately() helper. Signed-off-by: Sage Weil --- src/mon/Monitor.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; -- 2.47.3