From ebc3136587d70648e1634262934c0a4954c88308 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Thu, 10 Dec 2009 21:57:05 -0800 Subject: [PATCH] mon: fix mon injectargs If !connection, we know it's local delivery. --- src/mon/Monitor.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mon/Monitor.cc b/src/mon/Monitor.cc index ec006b39582..caac0fc49f2 100644 --- a/src/mon/Monitor.cc +++ b/src/mon/Monitor.cc @@ -510,7 +510,7 @@ bool Monitor::ms_dispatch(Message *m) entity_name = s->auth_handler->get_entity_name(); } } - src_is_mon = (connection && connection->get_peer_type() & CEPH_ENTITY_TYPE_MON); + src_is_mon = !connection || (connection->get_peer_type() & CEPH_ENTITY_TYPE_MON); #define ALLOW_CAPS(service_id, allow_caps) \ do { \ if (src_is_mon) \