]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mon: allow MMonGetMap without authentication 695/head
authorSage Weil <sage@inktank.com>
Sun, 6 Oct 2013 22:17:19 +0000 (15:17 -0700)
committerSage Weil <sage@inktank.com>
Sun, 6 Oct 2013 22:17:50 +0000 (15:17 -0700)
This is used by the MonClient::get_monmap_privately() helper.

Signed-off-by: Sage Weil <sage@inktank.com>
src/mon/Monitor.cc

index aea8110272077a0a9362e8b970e8e084a26a9f68..d8c90bc3d7653855c24df7c3ad1c34ee60cfb3c2 100644 (file)
@@ -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;