diff options
author | Sage Weil <sage@inktank.com> | 2013-10-06 15:17:19 -0700 |
---|---|---|
committer | Sage Weil <sage@inktank.com> | 2013-10-06 15:17:50 -0700 |
commit | 71ee6d7c8d3973361fa66f5e9eb4863cbc11c8a8 (patch) | |
tree | 466424189ef32c5a9fff4a8c18834456f92494f3 | |
parent | f27964189419f590c5025c515986b1a3af5e2748 (diff) | |
download | ceph-71ee6d7c8d3973361fa66f5e9eb4863cbc11c8a8.tar.gz |
mon: allow MMonGetMap without authentication
This is used by the MonClient::get_monmap_privately() helper.
Signed-off-by: Sage Weil <sage@inktank.com>
-rw-r--r-- | src/mon/Monitor.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mon/Monitor.cc b/src/mon/Monitor.cc index aea81102720..d8c90bc3d76 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; |