From 5fe3af8fd018571c54ea2a761d94b80f6e7df58c Mon Sep 17 00:00:00 2001 From: Greg Farnum Date: Mon, 22 Mar 2010 17:07:56 -0700 Subject: [PATCH] mon: remove now-unused macros. --- src/mon/Monitor.cc | 30 ------------------------------ 1 file changed, 30 deletions(-) diff --git a/src/mon/Monitor.cc b/src/mon/Monitor.cc index d3f213bcdb59c..5b5b6b5fe30e6 100644 --- a/src/mon/Monitor.cc +++ b/src/mon/Monitor.cc @@ -597,36 +597,6 @@ bool Monitor::_ms_dispatch(Message *m) if (s) dout(20) << " caps " << s->caps.get_str() << dendl; -#define ALLOW_CAPS(service_id, allow_caps) \ -do { \ - if (src_is_mon) \ - break; \ - if (s && ((int)s->caps.get_caps(service_id) & (allow_caps)) != (allow_caps)) { \ - dout(0) << "filtered out request due to caps " \ - << " allowing=" << #allow_caps << " message=" << *m << dendl; \ - delete m; \ - goto out; \ - } \ -} while (0) - -#define ALLOW_MESSAGES_FROM(peers) \ -do { \ - if (connection && (connection->get_peer_type() & (peers | CEPH_ENTITY_TYPE_MON)) == 0) { \ - dout(0) << "filtered out request, peer=" << connection->get_peer_type() \ - << " allowing=" << #peers << " message=" << *m << dendl; \ - delete m; \ - goto out; \ - } \ -} while (0) - -#define EXIT_NOT_ADMIN \ - if (connection) \ - dout(0) << "filtered out request (not admin), peer=" << connection->get_peer_type() \ - << " entity_name=" << entity_name.to_str() << dendl; \ - goto out; - -#define IS_NOT_ADMIN (!src_is_mon) && (!entity_name.is_admin()) - { switch (m->get_type()) { -- 2.39.5