mirror of
https://github.com/ceph/ceph
synced 2025-01-21 18:45:23 +00:00
mon: fix mon injectargs
If !connection, we know it's local delivery.
This commit is contained in:
parent
0deb52013e
commit
ebc3136587
@ -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) \
|
||||
|
Loading…
Reference in New Issue
Block a user